aboutsummaryrefslogtreecommitdiffstats
path: root/routes/ecash.ts
diff options
context:
space:
mode:
Diffstat (limited to 'routes/ecash.ts')
-rw-r--r--routes/ecash.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/ecash.ts b/routes/ecash.ts
index 995a8dce..e9c1cfdf 100644
--- a/routes/ecash.ts
+++ b/routes/ecash.ts
@@ -28,7 +28,7 @@ export default {
} = req;
try {
const token = await get(id);
- if (!token) fail("Ecash not found");
+ if (!token) return bail(res, "Ecash not found");
const status = await check(token);
res.send({ token, status });
} catch (e) {