1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 15:45:58 +09:00

Wait for promise to resolve in Undo activity handler

This commit is contained in:
Akihiko Odaki 2018-04-03 22:19:11 +09:00
parent 7dc71c09fd
commit aa0516d984

View File

@ -9,7 +9,9 @@ export default async (resolver: Resolver, actor, activity) => {
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) {
return;
}