Fix missing async/await

This commit is contained in:
Hidekazu Kobayashi 2024-09-16 11:43:06 +00:00
parent ae0b237e3b
commit 51d76115a4
2 changed files with 4 additions and 4 deletions

View File

@ -1045,8 +1045,8 @@ export class NoteCreateService implements OnApplicationShutdown {
}
@bindThis
private performUpdateNotesCount(id: MiNote['id'], incrBy: number) {
this.instancesRepository.increment({ id: id }, 'notesCount', incrBy);
private async async performUpdateNotesCount(id: MiNote['id'], incrBy: number) {
await this.instancesRepository.increment({ id: id }, 'notesCount', incrBy);
}
@bindThis

View File

@ -246,8 +246,8 @@ export class InboxProcessorService implements OnApplicationShutdown {
}
@bindThis
public performUpdateInstance(id: string, job: UpdateInstanceJob) {
this.federatedInstanceService.update(id, {
public async performUpdateInstance(id: string, job: UpdateInstanceJob) {
await this.federatedInstanceService.update(id, {
latestRequestReceivedAt: new Date(),
isNotResponding: false,
// もしサーバーが死んでるために配信が止まっていた場合には自動的に復活させてあげる