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,