selializers - posts: unneed async-await

Promise.all resolves all Promise, and selializeDriveFile returns Promise.
This commit is contained in:
otofune 2017-11-05 21:11:16 +09:00
parent 973439d402
commit 717a7ccb3a

View File

@ -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)
));
}