Skip to content

Commit

Permalink
fix: hash order data when customerId & orderId exists, closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomah committed Mar 25, 2023
1 parent a0c3aec commit 919088f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class SendleClient {
headers: {
'Idempotency-Key':
idempotencyKey || (customerId && orderId)
? hasha(`${customerId}-${orderId}`)
? hasha(JSON.stringify(args))
: this.#hyperIdInstance(),
'Content-Type': 'application/json',
Accept: 'application/json',
Expand Down

0 comments on commit 919088f

Please sign in to comment.