ci: add test & benchmark

This commit is contained in:
undefined committed 2022-04-04 21:50:33 +08:00
1 parent 5c1217dc60
commit d589217a75
20 files changed
+155 -52

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ const coll = db.collection('task');
const collEvent = db.collection('event');
async function getFirst(query: FilterQuery<Task>) {
if (process.env.CI) return null;
const q = { ...query };
q.executeAfter = q.executeAfter || { $lt: new Date() };
const res = await coll.findOneAndDelete(q, { sort: { priority: -1 } });