From 623f5b0072383ebbd16cea0a2073def588ee365c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 1 Apr 2018 21:19:39 +0900 Subject: [PATCH] Better variable name --- src/common/remote/activitypub/act/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/remote/activitypub/act/index.ts b/src/common/remote/activitypub/act/index.ts index a4c5b4602..a76983638 100644 --- a/src/common/remote/activitypub/act/index.ts +++ b/src/common/remote/activitypub/act/index.ts @@ -3,8 +3,8 @@ import createObject from '../create'; import Resolver from '../resolver'; export default (actor, value) => { - return new Resolver().resolve(value).then(resolved => Promise.all(resolved.map(async asyncResult => { - const { resolver, object } = await asyncResult; + return new Resolver().resolve(value).then(resolved => Promise.all(resolved.map(async promisedResult => { + const { resolver, object } = await promisedResult; const created = await (await createObject(resolver, actor, [object]))[0]; if (created !== null) {