diff options
author | Vitaly Takmazov | 2024-10-11 00:45:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-10-11 00:45:40 +0300 |
commit | 88aa7e9d7efb521effe069c6bd99dd687798082c (patch) | |
tree | eea8d3b9923d36d30aeb1a014fbe120fa558ae17 /vnext/server/middleware | |
parent | 581409e84fac81fa53b24089fd9c0d1af814b17a (diff) |
vnext: read sandbox apn ids from config
Diffstat (limited to 'vnext/server/middleware')
-rw-r--r-- | vnext/server/middleware/event.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/server/middleware/event.js b/vnext/server/middleware/event.js index c80f2249..623ee9a9 100644 --- a/vnext/server/middleware/event.js +++ b/vnext/server/middleware/event.js @@ -1,3 +1,5 @@ +import config from 'config' + import { simpleParser } from 'mailparser' import { isPM, isReply, isService } from '../common/MessageUtils' import { sendTelegramNotification } from '../durov' @@ -8,7 +10,7 @@ import { send } from '../hms' var log = debug('event') /** @type {number[]} */ -const allSandboxIds = [] +const allSandboxIds = config.get('service.sandboxIds') /** * handle message event |