Orders: Use "id" instead of wrong "session_id" property
This commit is contained in:
@@ -227,7 +227,7 @@ class BillingEventHandlerService {
|
|||||||
const { error } = await client
|
const { error } = await client
|
||||||
.from('orders')
|
.from('orders')
|
||||||
.update({ status: 'succeeded' })
|
.update({ status: 'succeeded' })
|
||||||
.match({ session_id: sessionId });
|
.match({ id: sessionId });
|
||||||
|
|
||||||
// handle the error
|
// handle the error
|
||||||
if (error) {
|
if (error) {
|
||||||
@@ -259,7 +259,7 @@ class BillingEventHandlerService {
|
|||||||
const { error } = await client
|
const { error } = await client
|
||||||
.from('orders')
|
.from('orders')
|
||||||
.update({ status: 'failed' })
|
.update({ status: 'failed' })
|
||||||
.match({ session_id: sessionId });
|
.match({ id: sessionId });
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
logger.error({ error, ...ctx }, 'Failed to update payment status');
|
logger.error({ error, ...ctx }, 'Failed to update payment status');
|
||||||
|
|||||||
Reference in New Issue
Block a user