fix lint
This commit is contained in:
parent
0abe2dfee0
commit
c69b72e199
573 changed files with 3318 additions and 3318 deletions
|
@ -17,7 +17,7 @@ export const meta = {
|
|||
|
||||
limit: {
|
||||
duration: ms('1hour'),
|
||||
max: 300
|
||||
max: 300,
|
||||
},
|
||||
|
||||
params: {
|
||||
|
@ -47,14 +47,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);
|
||||
|
||||
|
@ -70,7 +70,7 @@ export default define(meta, async (ps, user) => {
|
|||
description: ps.description,
|
||||
userId: user.id,
|
||||
isSensitive: ps.isSensitive,
|
||||
fileIds: files.map(file => file.id)
|
||||
fileIds: files.map(file => file.id),
|
||||
})).then(x => GalleryPosts.findOneOrFail(x.identifiers[0]));
|
||||
|
||||
return await GalleryPosts.pack(post, user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue