mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-05 20:25:59 +01:00
Merge pull request #1385 from akihikodaki/promise
Wait for promise to resolve in Undo activity handler
This commit is contained in:
commit
5ea9646252
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue