Skip to content

Commit

Permalink
fixup! refactor(ApPersonService.ts): 返り値をvoidに統一
Browse files Browse the repository at this point in the history
  • Loading branch information
okayurisotto committed Jul 3, 2023
1 parent bfa0fcd commit 083cd67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/core/activitypub/ApInboxService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 083cd67

Please sign in to comment.