From 291649b6e72c51d0759a1a9ec1c35029902e712d Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 28 Jul 2022 23:01:13 -0700 Subject: [PATCH] proper error --- .../server/api/endpoints/notes/recommended-timeline.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts index 8f3cbef7d3..2ff7b0a0f1 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -28,10 +28,10 @@ export const meta = { }, errors: { - stlDisabled: { - message: 'Hybrid timeline has been disabled.', - code: 'STL_DISABLED', - id: '620763f4-f621-4533-ab33-0577a1a3c342', + rtlDisabled: { + message: 'Recommended timeline has been disabled.', + code: 'RTL_DISABLED', + id: '620763f4-f621-4533-ab33-0577a1a3c343', }, }, } as const; @@ -60,7 +60,7 @@ export const paramDef = { export default define(meta, paramDef, async (ps, user) => { const m = await fetchMeta(); if (m.disableLocalTimeline && (!user.isAdmin && !user.isModerator)) { - throw new ApiError(meta.errors.stlDisabled); + throw new ApiError(meta.errors.rtlDisabled); } //#region Construct query