mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +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) {
|
for (const store of Stores) {
|
||||||
Logger.debug(store.links);
|
Logger.debug(store.links);
|
||||||
q.push(store);
|
q.push(store);
|
||||||
|
if (Stores.length === 1) {
|
||||||
|
q.push(store);
|
||||||
|
} // Keep from completely draining
|
||||||
}
|
}
|
||||||
|
|
||||||
await q.drain();
|
await q.drain();
|
||||||
|
|||||||
Reference in New Issue
Block a user