fix merge mistake

This commit is contained in:
dakkar 2024-04-11 13:48:12 +01:00
parent 886f5dd391
commit e4d7b2311f

View File

@ -86,7 +86,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const instance = await this.metaService.fetch(); 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) { if (instance.deeplFreeMode && !instance.deeplFreeInstance) {