From 5a46444875b94f2fb2c5d885b88a9448ea6905ae Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 13 Sep 2022 13:53:44 +0200 Subject: [PATCH] Use POST request method instead of GET --- back/methods/chat/notifyIssues.js | 2 +- back/methods/chat/sendQueued.js | 2 +- back/methods/dms/deleteTrashFiles.js | 2 +- back/methods/edi/updateData.js | 2 +- .../item/back/methods/item-image-queue/downloadImages.js | 2 +- .../back/methods/worker-time-control-mail/checkInbox.js | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/back/methods/chat/notifyIssues.js b/back/methods/chat/notifyIssues.js index b0a42b7be..902ee59cd 100644 --- a/back/methods/chat/notifyIssues.js +++ b/back/methods/chat/notifyIssues.js @@ -8,7 +8,7 @@ module.exports = Self => { }, http: { path: `/notifyIssues`, - verb: 'GET' + verb: 'POST' } }); diff --git a/back/methods/chat/sendQueued.js b/back/methods/chat/sendQueued.js index ab94a1746..66fbfcdc5 100644 --- a/back/methods/chat/sendQueued.js +++ b/back/methods/chat/sendQueued.js @@ -10,7 +10,7 @@ module.exports = Self => { }, http: { path: `/sendQueued`, - verb: 'GET' + verb: 'POST' } }); diff --git a/back/methods/dms/deleteTrashFiles.js b/back/methods/dms/deleteTrashFiles.js index 7cfb9f8d1..9da508285 100644 --- a/back/methods/dms/deleteTrashFiles.js +++ b/back/methods/dms/deleteTrashFiles.js @@ -12,7 +12,7 @@ module.exports = Self => { }, http: { path: `/deleteTrashFiles`, - verb: 'GET' + verb: 'POST' } }); diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index 86a9e1f31..c5705513f 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -12,7 +12,7 @@ module.exports = Self => { }, http: { path: `/updateData`, - verb: 'GET' + verb: 'POST' } }); diff --git a/modules/item/back/methods/item-image-queue/downloadImages.js b/modules/item/back/methods/item-image-queue/downloadImages.js index ec8244f49..05b223598 100644 --- a/modules/item/back/methods/item-image-queue/downloadImages.js +++ b/modules/item/back/methods/item-image-queue/downloadImages.js @@ -12,7 +12,7 @@ module.exports = Self => { }, http: { path: `/downloadImages`, - verb: 'GET' + verb: 'POST' } }); diff --git a/modules/worker/back/methods/worker-time-control-mail/checkInbox.js b/modules/worker/back/methods/worker-time-control-mail/checkInbox.js index bfecb1605..3e64a985a 100644 --- a/modules/worker/back/methods/worker-time-control-mail/checkInbox.js +++ b/modules/worker/back/methods/worker-time-control-mail/checkInbox.js @@ -11,7 +11,7 @@ module.exports = Self => { }, http: { path: `/checkInbox`, - verb: 'GET' + verb: 'POST' } }); @@ -58,8 +58,8 @@ module.exports = Self => { emailBody = bufferCopy.toUpperCase().trim(); const bodyPositionOK = emailBody.match(/\bOK\b/i); - - if (bodyPositionOK != null && (bodyPositionOK.index == 0 || bodyPositionOK.index == 122)) + const bodyPositionIndex = (bodyPositionOK.index == 0 || bodyPositionOK.index == 122); + if (bodyPositionOK != null && bodyPositionIndex) isEmailOk = true; else isEmailOk = false;