feat: Add atomic operations for Cloud Config parameters (#9219)

This commit is contained in:
Diamond Lewis
2024-07-17 19:52:39 -05:00
committed by GitHub
parent 69aba3bd3b
commit 35cadf9b83
2 changed files with 32 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export class GlobalConfigRouter extends PromiseRouter {
return acc;
}, {});
return req.config.database
.update('_GlobalConfig', { objectId: '1' }, update, { upsert: true })
.update('_GlobalConfig', { objectId: '1' }, update, { upsert: true }, true)
.then(() => ({ response: { result: true } }));
}