bugfix
This commit is contained in:
parent
d3245038d7
commit
bf74284ab2
@ -210,7 +210,7 @@ module.exports = {
|
||||
wait_check: {
|
||||
insert: async (type, ids) => {
|
||||
// 过滤掉 id 为 0 的
|
||||
ids = ids.filter(id => id < 0);
|
||||
ids = ids.filter(id => id > 0);
|
||||
if (ids.length == 0) return;
|
||||
return await dbUtils.query(`INSERT IGNORE INTO wait_check_${type} (id) VALUES ?`, [ids.map(id => [id])]);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user