Skip to content

Commit b06f617

Browse files
committed
fix dropIndex bug
1 parent 0daed7b commit b06f617

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ZelBack/src/services/serviceManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function startFluxFunctions() {
6767
await databaseTemp.collection(config.database.appsglobal.collections.appsTemporaryMessages).createIndex({ receivedAt: 1 }, { expireAfterSeconds: 3600 }); // todo longer time? dropIndexes()
6868
log.info('Temporary database prepared');
6969
log.info('Preparing Flux Apps locations');
70-
await databaseTemp.collection(config.database.appsglobal.collections.appsLocations).dropIndex({ broadcastedAt: 1 });
70+
await databaseTemp.collection(config.database.appsglobal.collections.appsLocations).dropIndex({ broadcastedAt: 1 }).catch(() => { console.log('Welcome to FluxOS'); }); // drop old index or display message for new installations
7171
// more than 2 hours and 5m. Meaning we have not received status message for a long time. So that node is no longer on a network or app is down.
7272
await databaseTemp.collection(config.database.appsglobal.collections.appsLocations).createIndex({ broadcastedAt: 1 }, { expireAfterSeconds: 7500 });
7373
log.info('Flux Apps locations prepared');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flux",
3-
"version": "4.27.0",
3+
"version": "4.27.1",
44
"description": "Flux, Your Gateway to a Decentralized World",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)