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) {