From f451cbea801bb3d6024009b10404f2771b6405fb Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Mon, 28 Sep 2026 13:48:20 -0700 Subject: [PATCH] grant-braincells: exit once the grant is written The database module keeps its pool open, so the script sat after printing its result until something killed it. Co-Authored-By: Claude Opus 5.5 --- aesel/scripts/grant-braincells.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aesel/scripts/grant-braincells.mjs b/aesel/scripts/grant-braincells.mjs index a25fed6da3..b09a542ae2 100644 --- a/aesel/scripts/grant-braincells.mjs +++ b/aesel/scripts/grant-braincells.mjs @@ -32,3 +32,5 @@ const result = await withWallets(async (wallets) => { return { granted, balance: await balance(user, wallets) }; }); console.log(JSON.stringify({ handle: `@${handle}`, id, credits, granted: result.granted, balance: result.balance })); +// The database module keeps its pool open; the grant is done, so leave. +process.exit(0); -- 2.51.2