Skip to content

feat: implement atomic transaction safety for core services - #164

Merged
ONEONUORA merged 3 commits into
Fracverse:masterfrom
Caritajoe18:master
Feb 24, 2026
Merged

feat: implement atomic transaction safety for core services#164
ONEONUORA merged 3 commits into
Fracverse:masterfrom
Caritajoe18:master

Conversation

@Caritajoe18

Copy link
Copy Markdown
Contributor

Refactor AuditLogService and NotificationService to support database transactions.

  • Update create_plan, claim_plan, and update_kyc_status to use atomic rollback logic.

  • Add submit_kyc to the atomic flow and introduce audit_action::KYC_SUBMITTED constant.

  • Remove create_silent to ensure notification failures trigger transaction rollbacks.

  • Fix PgExecutor trait bound errors by using generic Executor<'a, Database = Postgres> for service helpers.

  • Resolve clippy::explicit-auto-deref by using idiomatic re-borrowing (&mut *tx) where required for trait satisfaction.

  • Update Axum handlers to align with new service signatures.

  • Rebased to merge conflicts

Closes #124"

@ONEONUORA

Copy link
Copy Markdown
Contributor

@Caritajoe18 Pls fix the conflict

@Caritajoe18

Copy link
Copy Markdown
Contributor Author

hello @ONEONUORA ,
merge conflict is resolved

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice implementation @Caritajoe18

@ONEONUORA
ONEONUORA merged commit b3dbe40 into Fracverse:master Feb 24, 2026
2 checks passed
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.

[Backend] Atomic Transaction Safety

2 participants