From e4d7b2311f7616c2f64e4be9202d6cc70149faf9 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 11 Apr 2024 13:48:12 +0100 Subject: [PATCH] fix merge mistake --- packages/backend/src/server/api/endpoints/notes/translate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/translate.ts b/packages/backend/src/server/api/endpoints/notes/translate.ts index 54b242dae0..d6ef655291 100644 --- a/packages/backend/src/server/api/endpoints/notes/translate.ts +++ b/packages/backend/src/server/api/endpoints/notes/translate.ts @@ -86,7 +86,8 @@ export default class extends Endpoint { // eslint- const instance = await this.metaService.fetch(); - if (instance.deeplAuthKey == null && !instance.deeplFree throw new ApiError(meta.errors.unavailable); + if (instance.deeplAuthKey == null && !instance.deeplFreeMode) { + throw new ApiError(meta.errors.unavailable); } if (instance.deeplFreeMode && !instance.deeplFreeInstance) {