update mongo data

This commit is contained in:
Jan Prochazka
2021-04-05 15:09:03 +02:00
parent 6c2ee5ffdb
commit ccb1c26905
5 changed files with 70 additions and 9 deletions

View File

@@ -99,6 +99,13 @@ module.exports = {
return res.result;
},
updateCollection_meta: 'post',
async updateCollection({ conid, database, changeSet }) {
const opened = await this.ensureOpened(conid, database);
const res = await this.sendRequest(opened, { msgtype: 'updateCollection', changeSet });
return res.result;
},
status_meta: 'get',
async status({ conid, database }) {
const existing = this.opened.find(x => x.conid == conid && x.database == database);