Skip to content

Commit

Permalink
disabled cancel webook
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis committed Mar 8, 2024
1 parent 7f35e02 commit cb33228
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/payments/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,15 @@ export const cancel = async (event, ctx, callback) => {
} = data;
if (paymentType === "Event") {
try {
const eventIDAndYear = eventID + ";" + year;
// const eventIDAndYear = eventID + ";" + year;

const res = await db.deleteOne(email, USER_REGISTRATIONS_TABLE, {
["eventID;year"]: eventIDAndYear
});
// const res = await db.deleteOne(email, USER_REGISTRATIONS_TABLE, {
// ["eventID;year"]: eventIDAndYear
// });

const response = helpers.createResponse(200, {
message: "Registration entry Deleted!",
response: res
message: "Cancel webhook disabled",
response: {}
});

callback(null, response);
Expand Down

0 comments on commit cb33228

Please sign in to comment.