fix(scaffolder): handle after=0 in task events polling endpoint

Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
This commit is contained in:
Suhrid Marwah
2026-04-09 10:27:15 +05:30
committed by suhr25
parent c15599c286
commit 6408e4aa8a
@@ -951,7 +951,8 @@ export async function createRouter(
isTaskAuthorized,
});
const after = Number(req.query.after) || undefined;
const after =
req.query.after !== undefined ? Number(req.query.after) : undefined;
// cancel the request after 30 seconds. this aligns with the recommendations of RFC 6202.
const timeout = setTimeout(() => {