From a9d60d1c99d96f05be5e99b3184fa9bdeed8e6da Mon Sep 17 00:00:00 2001 From: devthejo Date: Sun, 1 Jun 2025 10:10:56 +0200 Subject: [PATCH] fix: alertGeosync place --- libs/common/{oapi => }/services/alert-geosync.js | 2 +- services/api/src/api/v1/operations/alert/send-alert.patch.js | 2 +- services/tasks/src/queues/geocode-move.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename libs/common/{oapi => }/services/alert-geosync.js (95%) diff --git a/libs/common/oapi/services/alert-geosync.js b/libs/common/services/alert-geosync.js similarity index 95% rename from libs/common/oapi/services/alert-geosync.js rename to libs/common/services/alert-geosync.js index d0ea74f..a1cf44f 100644 --- a/libs/common/oapi/services/alert-geosync.js +++ b/libs/common/services/alert-geosync.js @@ -2,7 +2,7 @@ const async = require("async") const { ctx } = require("@modjo/core") const tasks = require("~/tasks") -module.exports = async function alertGeolocSync(params) { +module.exports = async function alertGeosync(params) { const { addTask } = ctx.require("amqp") const redis = ctx.require("redisHotGeodata") diff --git a/services/api/src/api/v1/operations/alert/send-alert.patch.js b/services/api/src/api/v1/operations/alert/send-alert.patch.js index 20c86bf..9472a61 100644 --- a/services/api/src/api/v1/operations/alert/send-alert.patch.js +++ b/services/api/src/api/v1/operations/alert/send-alert.patch.js @@ -4,7 +4,7 @@ const { nanoid } = require("nanoid") // const natoUuid = require("utils/nato-alphabet/uuid") const wordsUuid = require("utils/words-id/uuid") -const alertGeosync = require("common/oapi/services/alert-geosync") +const alertGeosync = require("common/services/alert-geosync") module.exports = function () { const sql = ctx.require("postgres") diff --git a/services/tasks/src/queues/geocode-move.js b/services/tasks/src/queues/geocode-move.js index a5e6914..54928f3 100644 --- a/services/tasks/src/queues/geocode-move.js +++ b/services/tasks/src/queues/geocode-move.js @@ -3,7 +3,7 @@ const async = require("async") const { ctx } = require("@modjo/core") // const { taskCtx } = require("@modjo/microservice-worker/ctx") -const alertGeosync = require("common/oapi/services/alert-geosync") +const alertGeosync = require("common/services/alert-geosync") const { ignoreForeignKeyViolation } = require("common/libs/pg/ignoreErrors") const { DEVICE_RADIUS_ALL_DEFAULT,