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

This commit is contained in:
okayurisotto 2023-07-03 21:01:13 +09:00
parent bfa0fcd6f0
commit 083cd678ab
1 changed files with 3 additions and 3 deletions

View File

@ -738,11 +738,11 @@ export class ApInboxService {
}
@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
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);
}
}