From 4df088404d32efcd716ee614c8e3ec633df80cc0 Mon Sep 17 00:00:00 2001 From: vichansson Date: Thu, 21 Mar 2024 20:26:48 +0200 Subject: [PATCH] M #-: Change DS default id in delete request (#3000) Changes the default/fallback value of a failed delete request from 0 to -1. This invalidates the request and no datastore will be deleted. If it's set to 0, it will delete the system DS in case a delete request fails. (cherry picked from commit 51aded8b80da298f6a478ce79f70c8a572a14a34) --- src/fireedge/src/server/utils/constants/commands/datastore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fireedge/src/server/utils/constants/commands/datastore.js b/src/fireedge/src/server/utils/constants/commands/datastore.js index fbc5096e6f..1846f5ed9a 100644 --- a/src/fireedge/src/server/utils/constants/commands/datastore.js +++ b/src/fireedge/src/server/utils/constants/commands/datastore.js @@ -64,7 +64,7 @@ module.exports = { params: { id: { from: resource, - default: 0, + default: -1, }, }, },