Commit 7106ab22 authored by qinhaitao's avatar qinhaitao

fix: 🐛 mock insert

parent 15ad0454
......@@ -46,7 +46,7 @@ class BaseDao {
async insertOne(document) {
console.log(`insertOne`, document)
let result = await CURD_REQUEST({ db: this.db, TABLE: this.TABLE, type: `insert`, document: document || {} })
return result
return result.insertId || result._id || result
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment