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
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:
parent
417d252e9d
commit
8bc366fde0
6 changed files with 7 additions and 7 deletions
|
@ -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',
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -21,7 +21,7 @@ export const meta = {
|
||||||
|
|
||||||
v2: {
|
v2: {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
}
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue