diff --git a/server/src/services/PaymentServices.js b/server/src/services/PaymentServices.js index cb96a074..96fd9608 100644 --- a/server/src/services/PaymentServices.js +++ b/server/src/services/PaymentServices.js @@ -207,7 +207,7 @@ const PaymentServices = { const frosh = await FroshModel.findOne({ 'payments.paymentIntent': paymentIntent }).then( (frosh) => { if (!frosh) { - throw new Error('FROSH_NOT_FOUND'); + throw new Error('PAYMENT_NOT_FOUND'); } return frosh; },