fix lint
This commit is contained in:
parent
0abe2dfee0
commit
c69b72e199
573 changed files with 3318 additions and 3318 deletions
|
|
@ -16,7 +16,7 @@ export const meta = {
|
|||
|
||||
limit: {
|
||||
duration: ms('1hour'),
|
||||
max: 300
|
||||
max: 300,
|
||||
},
|
||||
|
||||
params: {
|
||||
|
|
@ -50,14 +50,14 @@ export const meta = {
|
|||
|
||||
errors: {
|
||||
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async (ps, user) => {
|
||||
const files = (await Promise.all(ps.fileIds.map(fileId =>
|
||||
DriveFiles.findOne({
|
||||
id: fileId,
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
})
|
||||
))).filter((file): file is DriveFile => file != null);
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ export default define(meta, async (ps, user) => {
|
|||
title: ps.title,
|
||||
description: ps.description,
|
||||
isSensitive: ps.isSensitive,
|
||||
fileIds: files.map(file => file.id)
|
||||
fileIds: files.map(file => file.id),
|
||||
});
|
||||
|
||||
const post = await GalleryPosts.findOneOrFail(ps.postId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue