server: fix comma-dangle lint

This commit is contained in:
Johann150 2023-01-03 02:47:58 +01:00
parent 417d252e9d
commit 8bc366fde0
Signed by untrusted user: 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',
reason: 'contains invalid file IDs',
}
},
);
}

View file

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

View file

@ -235,7 +235,7 @@ export const meta = {
},
v2: {
method: 'get'
method: 'get',
},
} as const;
@ -253,7 +253,7 @@ export const paramDef = {
} as const;
// 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 emojis = await Emojis.find({

View file

@ -21,7 +21,7 @@ export const meta = {
v2: {
method: 'get',
}
},
} as const;
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.apply(ctx, endpoint);
}
},
);
};
}

View file

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