Sync thank card sending logic and validation with specifications
This commit is contained in:
@@ -85,6 +85,10 @@ class UserService implements UserServiceInterface
|
||||
]);
|
||||
|
||||
$sender->card -= $amount;
|
||||
if ($sender->card <= 0) {
|
||||
$sender->card = 0;
|
||||
$sender->flag_send = config('constants.FLAG_SEND_DISABLED');
|
||||
}
|
||||
$sender->save();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user