Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from MuluhGodson/patch-4
Browse files Browse the repository at this point in the history
enum data truncate error fix
  • Loading branch information
yondifon committed Oct 17, 2020
2 parents b9a3e04 + 10249ae commit 6e23b94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Helper/RecordTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected function saveTransaction($data, $model) : void
$data = $this->extractSavableTransactionDetails($data);

$data['ts'] = Carbon::parse($data['ts']);
$data['direction'] = strval($data['direction']);

$model->transaction()->updateOrCreate($data);
}
Expand Down

0 comments on commit 6e23b94

Please sign in to comment.