mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-04-28 09:36:56 +00:00
add missing await
in ApLogCleanupService
This commit is contained in:
parent
4858276465
commit
71be39ecc8
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export class ApLogCleanupService implements OnApplicationShutdown {
|
||||||
@bindThis
|
@bindThis
|
||||||
private async tick(): Promise<void> {
|
private async tick(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const affected = this.apLogService.deleteExpiredLogs();
|
const affected = await this.apLogService.deleteExpiredLogs();
|
||||||
this.logger.info(`Activity Log cleanup complete; removed ${affected} expired logs.`);
|
this.logger.info(`Activity Log cleanup complete; removed ${affected} expired logs.`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.error('Activity Log cleanup failed:', err as Error);
|
this.logger.error('Activity Log cleanup failed:', err as Error);
|
||||||
|
|
Loading…
Add table
Reference in a new issue