feat: rename comment thread into activity (#939)
* feat: rename commentThread into activity server * feat: rename commentThread into activity front * feat: migration only create tables feat: migration only create tables * Update activities * fix: rebase partial fix * fix: all rebase problems and drop activity target alter * fix: lint * Update migration * Update migration * Fix conflicts * Fix conflicts --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -6,7 +6,7 @@ import { useRecoilState } from 'recoil';
|
||||
import { tokenPairState } from '@/auth/states/tokenPairState';
|
||||
import { isDebugModeState } from '@/client-config/states/isDebugModeState';
|
||||
import { AppPath } from '@/types/AppPath';
|
||||
import { CommentThreadTarget } from '~/generated/graphql';
|
||||
import { ActivityTarget } from '~/generated/graphql';
|
||||
import { useIsMatchingLocation } from '~/hooks/useIsMatchingLocation';
|
||||
import { useUpdateEffect } from '~/hooks/useUpdateEffect';
|
||||
|
||||
@ -25,12 +25,12 @@ export function useApolloFactory() {
|
||||
uri: `${process.env.REACT_APP_API_URL}`,
|
||||
cache: new InMemoryCache({
|
||||
typePolicies: {
|
||||
CommentThread: {
|
||||
Activity: {
|
||||
fields: {
|
||||
commentThreadTargets: {
|
||||
activityTargets: {
|
||||
merge(
|
||||
_existing: CommentThreadTarget[] = [],
|
||||
incoming: CommentThreadTarget[],
|
||||
_existing: ActivityTarget[] = [],
|
||||
incoming: ActivityTarget[],
|
||||
) {
|
||||
return [...incoming];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user