Skip to content

Balance is not being updated #599

Closed
Closed
@ObaydaAlesawi

Description

@ObaydaAlesawi

Describe the bug
The transaction is created, but the balance is not changed, I think that it's related to #429

To Reproduce
Steps to reproduce the behavior:

try {
    DB::beginTransaction();
    \App\Models\User::find(22802)->withdraw(500);
    DB::commit();
} catch (\Throwable $th) {
    DB::rollback();
}

Server:

  • php version: 8.1
  • database: mysql
  • wallet version 7.3.4
  • cache lock: DynamoDB
  • cache wallets: array (default)

Metadata

Metadata

Assignees

Labels

7.x-devquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions