From 88aa7e9d7efb521effe069c6bd99dd687798082c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 11 Oct 2024 00:45:40 +0300 Subject: vnext: read sandbox apn ids from config --- vnext/server/middleware/event.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vnext/server') 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 -- cgit v1.2.3