fix: Cron job for clearing OEmbed cache isn't working (#31336)
parent
ec285f7c06
commit
c8ab6583dc
@ -0,0 +1,6 @@ |
||||
--- |
||||
"@rocket.chat/meteor": patch |
||||
"@rocket.chat/model-typings": patch |
||||
--- |
||||
|
||||
Fixed issue with OEmbed cache not being cleared daily |
||||
@ -1,6 +1,7 @@ |
||||
import { cronJobs } from '@rocket.chat/cron'; |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
import { executeClearOEmbedCache } from '../methods/OEmbedCacheCleanup'; |
||||
|
||||
export async function oembedCron(): Promise<void> { |
||||
await cronJobs.add('Cleanup OEmbed cache', '24 2 * * *', async () => Meteor.callAsync('OEmbedCacheCleanup')); |
||||
await cronJobs.add('Cleanup OEmbed cache', '24 2 * * *', async () => executeClearOEmbedCache()); |
||||
} |
||||
|
||||
Loading…
Reference in new issue