fixup! refactor(ApPersonService.ts): 返り値をvoidに統一

This commit is contained in:
okayurisotto 2023-07-03 21:01:13 +09:00
parent bfa0fcd6f0
commit 083cd678ab

View file

@ -738,11 +738,11 @@ export class ApInboxService {
} }
@bindThis @bindThis
private async move(actor: RemoteUser, activity: IMove): Promise<string> { private async move(actor: RemoteUser, activity: IMove): Promise<void> {
// fetch the new and old accounts // fetch the new and old accounts
const targetUri = getApHrefNullable(activity.target); const targetUri = getApHrefNullable(activity.target);
if (!targetUri) return 'skip: invalid activity target'; if (!targetUri) return;
return await this.apPersonService.updatePerson(actor.uri) ?? 'skip: nothing to do'; await this.apPersonService.updatePerson(actor.uri);
} }
} }