mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 02:57:34 +00:00
fix: keep single Store from draining
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -41,6 +41,9 @@ async function main() {
|
||||
for (const store of Stores) {
|
||||
Logger.debug(store.links);
|
||||
q.push(store);
|
||||
if (Stores.length === 1) {
|
||||
q.push(store);
|
||||
} // Keep from completely draining
|
||||
}
|
||||
|
||||
await q.drain();
|
||||
|
||||
Reference in New Issue
Block a user