Skip to content

Commit

Permalink
Merge pull request #3990 from airqo-platform/introducing-airbeam
Browse files Browse the repository at this point in the history
introducing airbeam network
  • Loading branch information
Baalmart authored Dec 3, 2024
2 parents 04ae9fa + 5f36f88 commit 1838aa7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
16 changes: 8 additions & 8 deletions src/auth-service/utils/create-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 5 additions & 1 deletion src/device-registry/config/global/mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const mappings = {
PREDEFINED_FILTER_VALUES: {
NETWORKS: ["metone", "usembassy"],
COMBINATIONS: {
NETWORK_PAIRS: [["metone", "usembassy"], ["kcca", "clarity"]],
NETWORK_PAIRS: [
["metone", "usembassy", "us_embassy"],
["kcca", "clarity"],
["urbanbetter", "airbeam", "urban_better"],
],
GROUP_PAIRS: [["metone", "usembassy"], ["kcca", "clarity"]],
STATUS_PAIRS: [
["active", "enabled", "running"],
Expand Down
12 changes: 6 additions & 6 deletions src/device-registry/utils/create-cohort.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1838aa7

Please sign in to comment.