Skip to content

Commit

Permalink
[backend] remove export
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyCloarec committed Nov 25, 2024
1 parent 01fc56f commit 44bf108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opencti-platform/opencti-graphql/src/database/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { generateCreateMessage, generateDeleteMessage, generateMergeMessage, gen
import { INPUT_OBJECTS } from '../schema/general';
import { enrichWithRemoteCredentials } from '../config/credentials';
import { getDraftContext } from '../utils/draftContext';
import type { ExclusionListCacheNode } from './exclusionListCacheTree';
import type { ExclusionListNode } from '../utils/exclusionLists';

const USE_SSL = booleanConf('redis:use_ssl', false);
const REDIS_CA = conf.get('redis:ca').map((path: string) => loadCert(path));
Expand Down Expand Up @@ -909,7 +909,7 @@ export const redisGetExclusionListCache = async () => {

return { matchedLists: [], nextNodes: {} };
};
export const redisSetExclusionListCache = async (cache: ExclusionListCacheNode) => {
export const redisSetExclusionListCache = async (cache: ExclusionListNode) => {
const jsonStringifiedCache = JSON.stringify(cache);
const stringifiedCache = toBase64(jsonStringifiedCache) as string;
await getClientBase().set(EXCLUSION_LIST_CACHE_KEY, stringifiedCache);
Expand Down

0 comments on commit 44bf108

Please sign in to comment.