mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
typo fix
This commit is contained in:
parent
b16517ad4e
commit
01ca9a66fc
@ -74,9 +74,7 @@ const createAuditLogsService = (strapi) => {
|
||||
async register() {
|
||||
this._provider = await localProvider.register({ strapi });
|
||||
this._eventHubUnsubscribe = strapi.eventHub.subscribe(handleEvent.bind(this));
|
||||
this._deleteExpiredsJob = scheduleJob('0 0 * * *', () =>
|
||||
this._provider.deleteExpiredEvents()
|
||||
);
|
||||
this._deleteExpiredJob = scheduleJob('0 0 * * *', () => this._provider.deleteExpiredEvents());
|
||||
return this;
|
||||
},
|
||||
|
||||
@ -116,8 +114,8 @@ const createAuditLogsService = (strapi) => {
|
||||
this._eventHubUnsubscribe();
|
||||
}
|
||||
|
||||
if (this._deleteExpiredsJob) {
|
||||
this._deleteExpiredsJob.cancel();
|
||||
if (this._deleteExpiredJob) {
|
||||
this._deleteExpiredJob.cancel();
|
||||
}
|
||||
|
||||
return this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user