mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-28 21:49:40 +02:00
feat: add cache keys for members
This commit is contained in:
parent
52c3b5cc7e
commit
baab42efb6
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import type { GetLLMConfigsRequest } from "@/contracts/types/llm-config.types";
|
||||||
import type { GetPodcastsRequest } from "@/contracts/types/podcast.types";
|
import type { GetPodcastsRequest } from "@/contracts/types/podcast.types";
|
||||||
import type { GetRolesRequest } from "@/contracts/types/roles.types";
|
import type { GetRolesRequest } from "@/contracts/types/roles.types";
|
||||||
import type { GetSearchSpacesRequest } from "@/contracts/types/search-space.types";
|
import type { GetSearchSpacesRequest } from "@/contracts/types/search-space.types";
|
||||||
|
import type { GetMembersRequest } from "@/contracts/types/members.types";
|
||||||
|
|
||||||
export const cacheKeys = {
|
export const cacheKeys = {
|
||||||
chats: {
|
chats: {
|
||||||
|
|
@ -52,4 +53,8 @@ export const cacheKeys = {
|
||||||
permissions: {
|
permissions: {
|
||||||
all: () => ["permissions"] as const,
|
all: () => ["permissions"] as const,
|
||||||
},
|
},
|
||||||
|
members: {
|
||||||
|
all: (searchSpaceId: string) => ["members", searchSpaceId] as const,
|
||||||
|
myAccess: (searchSpaceId: string) => ["members", "my-access", searchSpaceId] as const,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue