Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
MomentQYC committed Oct 7, 2024
1 parent 40d7dc0 commit 71603e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/backend/src/server/api/endpoints/notes/tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / lint (backend)

Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer
super(meta, paramDef, async (ps, me) => {
const policies = await this.roleService.getUserPolicies(me.id);
if (!policies.canUseTTS) {
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 71603e6

Please sign in to comment.