From 5b1cd3bd3cb1b18172946276ae3dea03ec0531ea Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 26 Oct 2018 08:36:50 +0900 Subject: Fix bug --- src/server/api/endpoints/charts/user/reactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/api/endpoints/charts/user/reactions.ts') diff --git a/src/server/api/endpoints/charts/user/reactions.ts b/src/server/api/endpoints/charts/user/reactions.ts index 8632044ffa..60cdaa70bb 100644 --- a/src/server/api/endpoints/charts/user/reactions.ts +++ b/src/server/api/endpoints/charts/user/reactions.ts @@ -33,7 +33,7 @@ export const meta = { export default (params: any) => new Promise(async (res, rej) => { const [ps, psErr] = getParams(meta, params); - if (psErr) throw psErr; + if (psErr) return rej(psErr); const stats = await perUserReactionsChart.getChart(ps.span as any, ps.limit, ps.userId); -- cgit v1.3.1-freya