From 7f575969ed35c7aeab540c94c6ee894ebe6f3c87 Mon Sep 17 00:00:00 2001 From: tristan-greffe Date: Fri, 28 Jun 2024 01:49:06 +0200 Subject: [PATCH] fix: lru-cache declaration --- core/api/services/authorisations/authorisations.service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/api/services/authorisations/authorisations.service.js b/core/api/services/authorisations/authorisations.service.js index 6f70ecdc0..297fbac14 100644 --- a/core/api/services/authorisations/authorisations.service.js +++ b/core/api/services/authorisations/authorisations.service.js @@ -1,9 +1,10 @@ import _ from 'lodash' -import { LRUCache } from 'lru-cache' +import lruCache from 'lru-cache' import makeDebug from 'debug' import { defineAbilities } from '../../../common/permissions.js' const debug = makeDebug('kdk:core:authorisations:service') +const { LRUCache } = lruCache // Global key to store abilities in cache for anonymous users const ANONYMOUS_USER = 'anonymous'