server: fix comma-dangle lint
All checks were successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Johann150 2023-01-03 02:47:58 +01:00
parent 417d252e9d
commit 8bc366fde0
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1
6 changed files with 7 additions and 7 deletions

View file

@ -53,7 +53,7 @@ export default define(meta, paramDef, async (ps, user) => {
{ {
param: '#/properties/fileIds/items', param: '#/properties/fileIds/items',
reason: 'contains invalid file IDs', reason: 'contains invalid file IDs',
} },
); );
} }

View file

@ -54,7 +54,7 @@ export default define(meta, paramDef, async (ps, user) => {
{ {
param: '#/properties/fileIds/items', param: '#/properties/fileIds/items',
reason: 'contains invalid file IDs', reason: 'contains invalid file IDs',
} },
); );
} }

View file

@ -235,7 +235,7 @@ export const meta = {
}, },
v2: { v2: {
method: 'get' method: 'get',
}, },
} as const; } as const;
@ -253,7 +253,7 @@ export const paramDef = {
} as const; } as const;
// eslint-disable-next-line import/no-default-export // eslint-disable-next-line import/no-default-export
export default define(meta, paramDef, async (ps, me) => { export default define(meta, paramDef, async () => {
const instance = await fetchMeta(true); const instance = await fetchMeta(true);
const emojis = await Emojis.find({ const emojis = await Emojis.find({

View file

@ -21,7 +21,7 @@ export const meta = {
v2: { v2: {
method: 'get', method: 'get',
} },
} as const; } as const;
export const paramDef = { export const paramDef = {

View file

@ -58,7 +58,7 @@ function uploadWrapper(endpoint: string): KoaMiddleware {
apiErr = new ApiError('FILE_TOO_BIG', { maxFileSize: config.maxFileSize || 262144000 }); apiErr = new ApiError('FILE_TOO_BIG', { maxFileSize: config.maxFileSize || 262144000 });
} }
apiErr.apply(ctx, endpoint); apiErr.apply(ctx, endpoint);
} },
); );
}; };
} }

View file

@ -102,7 +102,7 @@ class NotificationManager {
// replies // replies
this.note.threadId ?? this.note.id, this.note.threadId ?? this.note.id,
// renotes // renotes
this.note.renoteId ?? undefined this.note.renoteId ?? undefined,
]), ]),
mutingNotificationTypes: ArrayOverlap([x.reason]), mutingNotificationTypes: ArrayOverlap([x.reason]),
}); });