mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bug fix
This commit is contained in:
1 parent
2b6a510c1e
commit
f2bcc3bc93
23 files changed
+241
-119
No files matched your search
@@ -3,7 +3,6 @@ const db = require('../service/db');
|
||||
const coll = db.collection('task');
|
||||
|
||||
async function add(task) {
|
||||
console.log(task);
|
||||
const res = await coll.insertOne(task);
|
||||
return res.insertedId;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user