Fix missing async/await
This commit is contained in:
parent
ae0b237e3b
commit
51d76115a4
|
@ -1045,8 +1045,8 @@ export class NoteCreateService implements OnApplicationShutdown {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private performUpdateNotesCount(id: MiNote['id'], incrBy: number) {
|
private async async performUpdateNotesCount(id: MiNote['id'], incrBy: number) {
|
||||||
this.instancesRepository.increment({ id: id }, 'notesCount', incrBy);
|
await this.instancesRepository.increment({ id: id }, 'notesCount', incrBy);
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
|
|
@ -246,8 +246,8 @@ export class InboxProcessorService implements OnApplicationShutdown {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public performUpdateInstance(id: string, job: UpdateInstanceJob) {
|
public async performUpdateInstance(id: string, job: UpdateInstanceJob) {
|
||||||
this.federatedInstanceService.update(id, {
|
await this.federatedInstanceService.update(id, {
|
||||||
latestRequestReceivedAt: new Date(),
|
latestRequestReceivedAt: new Date(),
|
||||||
isNotResponding: false,
|
isNotResponding: false,
|
||||||
// もしサーバーが死んでるために配信が止まっていた場合には自動的に復活させてあげる
|
// もしサーバーが死んでるために配信が止まっていた場合には自動的に復活させてあげる
|
||||||
|
|
Loading…
Reference in New Issue