summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/charts/user/notes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/charts/user/notes.ts')
-rw-r--r--src/server/api/endpoints/charts/user/notes.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/charts/user/notes.ts b/src/server/api/endpoints/charts/user/notes.ts
index cd028d88a2..66051fa7c6 100644
--- a/src/server/api/endpoints/charts/user/notes.ts
+++ b/src/server/api/endpoints/charts/user/notes.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 perUserNotesChart.getChart(ps.span as any, ps.limit, ps.userId);