mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
selializers - posts: unneed async-await
Promise.all resolves all Promise, and selializeDriveFile returns Promise.
This commit is contained in:
parent
973439d402
commit
717a7ccb3a
@ -84,8 +84,8 @@ const self = (
|
|||||||
|
|
||||||
// Populate media
|
// Populate media
|
||||||
if (_post.media_ids) {
|
if (_post.media_ids) {
|
||||||
_post.media = await Promise.all(_post.media_ids.map(async fileId =>
|
_post.media = await Promise.all(_post.media_ids.map(fileId =>
|
||||||
await serializeDriveFile(fileId)
|
serializeDriveFile(fileId)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user