X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/73973edab9aaa81312ba80a68bfe34bf5abcecd9..fcbbc49687afeeecdc9388b367b1d7f2d0c76214:/src/stores/forums.js?ds=inline diff --git a/src/stores/forums.js b/src/stores/forums.js index 39822a3..2c03a05 100644 --- a/src/stores/forums.js +++ b/src/stores/forums.js @@ -1,4 +1,5 @@ import { store } from './apollo'; -import { GET_FORUMS } from '$/data/queries'; +import { GET_FORUM, GET_FORUMS } from '$/data/queries'; +export const getForum = (id) => store({ key: 'forum', query: GET_FORUM, variables: { id } }); export const getForums = () => store({ key: 'forums', query: GET_FORUMS, initialValue: [] });