-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MomentQYC
committed
Oct 7, 2024
1 parent
40d7dc0
commit 71603e6
Showing
1 changed file
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |
private httpRequestService: HttpRequestService, | ||
private roleService: RoleService, | ||
) { | ||
// @ts-ignore | ||
// @ts-expect-error | ||
Check failure on line 69 in packages/backend/src/server/api/endpoints/notes/tts.ts GitHub Actions / lint (backend)
|
||
super(meta, paramDef, async (ps, me) => { | ||
const policies = await this.roleService.getUserPolicies(me.id); | ||
if (!policies.canUseTTS) { | ||
|
@@ -161,7 +161,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |
const contentType = res.headers.get('Content-Type') || 'application/octet-stream'; | ||
|
||
if (contentType === 'audio/x-wav') { | ||
// @ts-ignore | ||
return res.body; | ||
} else { | ||
throw new ApiError(meta.errors.unavailable); | ||
|
@@ -188,7 +187,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |
const contentType = res.headers.get('Content-Type') || 'application/octet-stream'; | ||
|
||
if (contentType === 'audio/flac') { | ||
// @ts-ignore | ||
return res.body; | ||
} else { | ||
throw new ApiError(meta.errors.unavailable); | ||
|