mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
Wait for promise to resolve in Undo activity handler
This commit is contained in:
parent
a247a2bd19
commit
562ae599f6
@ -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 New Issue
Block a user