1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Roll back for idempotency

This commit is contained in:
David Bomba 2024-06-17 21:29:31 +10:00
parent 4ef2d99ca9
commit f03c6a1d6b

View File

@ -129,9 +129,9 @@ class StorePaymentRequest extends Request
$input['date'] = now()->addSeconds($user->company()->utc_offset())->format('Y-m-d'); $input['date'] = now()->addSeconds($user->company()->utc_offset())->format('Y-m-d');
} }
// if (! isset($input['idempotency_key'])) { if (! isset($input['idempotency_key'])) {
$input['idempotency_key'] = substr(time()."{$input['date']}{$input['amount']}{$credits_total}{$this->client_id}{$user->company()->company_key}", 0, 64); $input['idempotency_key'] = substr(time()."{$input['date']}{$input['amount']}{$credits_total}{$this->client_id}{$user->company()->company_key}", 0, 64);
// } }
$this->replace($input); $this->replace($input);
} }