`list` missing in mongodb adapter

This commit is contained in:
ui_creeperlv 2024-03-06 17:26:56 +05:30
parent 923562e6d7
commit eb9f9c175d
1 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,14 @@ module.exports.initMongoDBInstance = async (client,config,callback) => {
})
},
list: async (table , callback) => {
var collection = db.collection(table);
var data = await collection.find(data);
callback(data);
},
insert: async (table, data,callback) => {
var uuid = require('node:crypto').randomUUID();