From 198110aa54c27dc9052bb2798f7e7cb85c2fcf99 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 15 Jan 2022 18:21:44 +0300 Subject: [PATCH] Update create-matrix.js --- scripts/commands/create-matrix.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/commands/create-matrix.js b/scripts/commands/create-matrix.js index 7b7894cd..5abe8a9c 100644 --- a/scripts/commands/create-matrix.js +++ b/scripts/commands/create-matrix.js @@ -1,6 +1,7 @@ const { logger, db } = require('../core') async function main() { + await db.channels.load() const docs = await db.channels.find({}).sort({ cluster_id: 1 }) const cluster_id = docs.reduce((acc, curr) => { if (!acc.includes(curr.cluster_id)) acc.push(curr.cluster_id)