mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:17:08 +00:00
Make code compatible with NodeJS 14
This commit is contained in:
@@ -6,8 +6,8 @@ const { queue } = require('../../lib/db');
|
||||
* status = status. Take oldest first.
|
||||
*/
|
||||
async function fetchItems ({status, limit}) {
|
||||
status ||= "queued";
|
||||
limit ||= 10;
|
||||
status = status || "queued";
|
||||
limit = limit || 10;
|
||||
return await queue.get(null, {status, limit, order: "created_on", dir: "+"})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user