aboutsummaryrefslogtreecommitdiff
path: root/vnext/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-10-11 00:45:40 +0300
committerGravatar Vitaly Takmazov2024-10-11 00:45:40 +0300
commit88aa7e9d7efb521effe069c6bd99dd687798082c (patch)
treeeea8d3b9923d36d30aeb1a014fbe120fa558ae17 /vnext/server
parent581409e84fac81fa53b24089fd9c0d1af814b17a (diff)
vnext: read sandbox apn ids from config
Diffstat (limited to 'vnext/server')
-rw-r--r--vnext/server/middleware/event.js4
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