mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 01:36:43 -06:00
selializers - posts: unneed async-await
Promise.all resolves all Promise, and selializeDriveFile returns Promise.
This commit is contained in:
parent
0e8a4f36a2
commit
78487934c7
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ const self = (
|
|||
|
||||
// Populate media
|
||||
if (_post.media_ids) {
|
||||
_post.media = await Promise.all(_post.media_ids.map(async fileId =>
|
||||
await serializeDriveFile(fileId)
|
||||
_post.media = await Promise.all(_post.media_ids.map(fileId =>
|
||||
serializeDriveFile(fileId)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue