From f79e05195b2b14d770a0d6e632e2a25a0dc2390f Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Apr 2018 23:01:48 +0900 Subject: [PATCH] Refactor --- src/remote/activitypub/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remote/activitypub/create.ts b/src/remote/activitypub/create.ts index 8f3e146290..44fd66509d 100644 --- a/src/remote/activitypub/create.ts +++ b/src/remote/activitypub/create.ts @@ -36,7 +36,7 @@ class Creator { return createRemoteUserObject('driveFiles.files', _id, object); } - private async createNote(resolver, object) { + private async createNote(resolver: Resolver, object) { if ('attributedTo' in object && this.actor.account.uri !== object.attributedTo) { throw new Error(); } @@ -92,7 +92,7 @@ class Creator { return promisedRemoteUserObject; } - public async create(parentResolver, value): Promise>> { + public async create(parentResolver: Resolver, value): Promise>> { const collection = await parentResolver.resolveCollection(value); return collection.object.map(async element => {