Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1486 adding get transaction version service #1488

Merged

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Nov 15, 2022

This PR adds the get transaction version service

Changes

  • Fixes delete transaction controller
  • Adds get transaction version service

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@xoscar xoscar self-assigned this Nov 15, 2022
@xoscar xoscar linked an issue Nov 15, 2022 that may be closed by this pull request
@xoscar xoscar marked this pull request as ready for review November 15, 2022 16:39
@@ -133,6 +133,12 @@ func (td *postgresDB) DeleteTransaction(ctx context.Context, transaction model.T
return err
}

_, err = tx.ExecContext(ctx, "DELETE FROM transaction_runs WHERE transaction_id = $1", transaction.ID)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delete endpoint was throwing an error because this was missing 😬

Copy link
Contributor

@cescoferraro cescoferraro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xoscar xoscar merged commit 3041a34 into main Nov 15, 2022
@xoscar xoscar deleted the 1486-transactions-implement-get-transaction-by-version-service branch November 15, 2022 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Transactions] Implement GET Transaction by Version Service
4 participants