WIP: store and get relation between rooms and channels:

* fix rebuildData
* write data to disk
This commit is contained in:
John Livingston
2023-09-11 18:13:57 +02:00
parent e4683cf282
commit 28faad6bbe
2 changed files with 62 additions and 6 deletions

View File

@ -46,7 +46,7 @@ async function register (options: RegisterServerOptions): Promise<any> {
await ensureProsodyRunning(options)
if (roomChannelNeedsDataInit) {
logger.info('The RoomChannel singleton has not found data, we must rebuild')
logger.info('The RoomChannel singleton has not found any data, we must rebuild')
// no need to wait here, can be done without await.
roomChannelSingleton.rebuildData().then(
() => { logger.info('RoomChannel singleton rebuild done') },