mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Add missing brackets
This commit is contained in:
parent
7d7320c281
commit
a7bf324f3c
@ -3,7 +3,7 @@ import createObject from '../create';
|
|||||||
import Resolver from '../resolver';
|
import Resolver from '../resolver';
|
||||||
|
|
||||||
export default (actor, value) => {
|
export default (actor, value) => {
|
||||||
return (new Resolver).resolve(value).then(resolved => Promise.all(resolved.map(async asyncResult => {
|
return (new Resolver()).resolve(value).then(resolved => Promise.all(resolved.map(async asyncResult => {
|
||||||
const { resolver, object } = await asyncResult;
|
const { resolver, object } = await asyncResult;
|
||||||
const created = await (await createObject(resolver, actor, [object]))[0];
|
const created = await (await createObject(resolver, actor, [object]))[0];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user