`list` missing in mongodb adapter
This commit is contained in:
parent
923562e6d7
commit
eb9f9c175d
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue