Skip to content

Commit

Permalink
Merge pull request #92 from SquareTable/91-tempsendnotificationkey-sh…
Browse files Browse the repository at this point in the history
…ould-not-send-error-code-409-when-notification-key-already-exists

temp/sendnotificationkey now sends status code 200 when key is already in db
  • Loading branch information
Sebastian-Webster authored Sep 6, 2023
2 parents f8903a6 + 6845e40 commit 1b6a822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/Temp.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TempController {
if (userData) {
const notificationKeys = userData.notificationKeys;
if (notificationKeys.includes(notificationKey)) {
return resolve(HTTPWTHandler.conflict('Notification key already exists in account data'))
return resolve(HTTPWTHandler.OK('Notification key already exists in account data'))
} else if (notificationKey == null) {
return resolve(HTTPWTHandler.badInput('Notification key cannot be null'))
} else {
Expand Down

0 comments on commit 1b6a822

Please sign in to comment.