summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-04-03 22:31:04 +0900
committerGitHub <noreply@github.com>2018-04-03 22:31:04 +0900
commit5ea964625216565356fb3549e511febf867b1990 (patch)
treec3b509039e6dc84606a7cb9ad846426414c43bfb /src
parentMerge pull request #1384 from akihikodaki/resolve (diff)
parentWait for promise to resolve in Undo activity handler (diff)
downloadsharkey-5ea964625216565356fb3549e511febf867b1990.tar.gz
sharkey-5ea964625216565356fb3549e511febf867b1990.tar.bz2
sharkey-5ea964625216565356fb3549e511febf867b1990.zip
Merge pull request #1385 from akihikodaki/promise
Wait for promise to resolve in Undo activity handler
Diffstat (limited to 'src')
-rw-r--r--src/remote/activitypub/act/undo/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/remote/activitypub/act/undo/index.ts b/src/remote/activitypub/act/undo/index.ts
index d104eeb80c..38d5bfe211 100644
--- a/src/remote/activitypub/act/undo/index.ts
+++ b/src/remote/activitypub/act/undo/index.ts
@@ -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;
}