refactor: posts cache to get rid of require in functions

This commit is contained in:
Barış Soner Uşaklı
2024-06-10 17:10:43 -04:00
parent b4db2f7faf
commit 236ac32303
8 changed files with 40 additions and 17 deletions

View File

@@ -740,7 +740,7 @@ describe('socket.io', () => {
it('should toggle caches', async () => {
const caches = {
post: require('../src/posts/cache'),
post: require('../src/posts/cache').getOrCreate(),
object: require('../src/database').objectCache,
group: require('../src/groups').cache,
local: require('../src/cache'),