From 86ee5d912c1ff26b3e198dbf1ebcb715533a57d5 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Tue, 26 Sep 2023 13:35:58 -0700 Subject: [PATCH] setup query --- datastore/threads/threadproxyds.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datastore/threads/threadproxyds.nim b/datastore/threads/threadproxyds.nim index db2c6f1..cf1960e 100644 --- a/datastore/threads/threadproxyds.nim +++ b/datastore/threads/threadproxyds.nim @@ -235,9 +235,10 @@ proc queryTask[DB]( (?!QResult).ok(default(QResult)) else: (?!QResult).err(qh.error()) + if qh.isErr(): + return var handle = qh.get() - for item in handle.iter(): executeTask(ctx): item