From b5459ba209551fc90753b5d4b8c6221d38876601 Mon Sep 17 00:00:00 2001 From: baalmart Date: Tue, 3 Dec 2024 21:07:06 +0300 Subject: [PATCH] disable network creation --- src/auth-service/utils/create-network.js | 16 ++++++++-------- src/device-registry/utils/create-cohort.js | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/auth-service/utils/create-network.js b/src/auth-service/utils/create-network.js index eaa2e8ea9e..8b879af0bf 100644 --- a/src/auth-service/utils/create-network.js +++ b/src/auth-service/utils/create-network.js @@ -142,14 +142,14 @@ const createNetwork = { }, create: async (request, next) => { try { - // return { - // success: false, - // message: "Service Temporarily Unavailable", - // errors: { - // message: "Service Temporarily Unavailable", - // }, - // status: httpStatus.SERVICE_UNAVAILABLE, - // }; + return { + success: false, + message: "Service Temporarily Unavailable", + errors: { + message: "Service Temporarily Unavailable", + }, + status: httpStatus.SERVICE_UNAVAILABLE, + }; const { body, query } = request; const { tenant } = query; diff --git a/src/device-registry/utils/create-cohort.js b/src/device-registry/utils/create-cohort.js index 8f18b3ae5f..b0ac194d85 100644 --- a/src/device-registry/utils/create-cohort.js +++ b/src/device-registry/utils/create-cohort.js @@ -186,12 +186,12 @@ const createCohort = { }, createNetwork: async (request, next) => { try { - // return { - // success: false, - // message: "Service Temporarily Disabled --coming soon", - // status: httpStatus.SERVICE_UNAVAILABLE, - // errors: { message: "Service Unavailable" }, - // }; + return { + success: false, + message: "Service Temporarily Disabled --coming soon", + status: httpStatus.SERVICE_UNAVAILABLE, + errors: { message: "Service Unavailable" }, + }; /** * in the near future, this wont be needed since Kafka * will handle the entire creation process