1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-02-25 09:54:24 -06:00

Merge pull request from akihikodaki/promise

Wait for promise to resolve in Undo activity handler
This commit is contained in:
syuilo 2018-04-03 22:31:04 +09:00 committed by GitHub
commit 5ea9646252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,9 @@ export default async (resolver: Resolver, actor, activity) => {
const results = await act(resolver, actor, activity.object); const results = await act(resolver, actor, activity.object);
await Promise.all(results.map(async result => { await Promise.all(results.map(async promisedResult => {
const result = await promisedResult;
if (result === null) { if (result === null) {
return; return;
} }