chore: additional changes for FK violation during calendar event association INS
This commit is contained in:
-1
@@ -36,7 +36,6 @@ export const SettingsAccountsCalendarChannelsContainer = () => {
|
||||
eq: currentWorkspaceMember?.id,
|
||||
},
|
||||
},
|
||||
skip: !currentWorkspaceMember?.id,
|
||||
});
|
||||
|
||||
const { records: calendarChannels } = useFindManyRecords<
|
||||
|
||||
-1
@@ -43,7 +43,6 @@ export const SettingsAccountsMessageChannelsContainer = () => {
|
||||
eq: currentWorkspaceMember?.id,
|
||||
},
|
||||
},
|
||||
skip: !currentWorkspaceMember?.id,
|
||||
});
|
||||
|
||||
const { recordGqlFields } = useGenerateDepthRecordGqlFieldsFromObject({
|
||||
|
||||
@@ -34,7 +34,6 @@ export const SettingsAccounts = () => {
|
||||
},
|
||||
},
|
||||
recordGqlFields,
|
||||
skip: !currentWorkspaceMember?.id,
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
+1
-11
@@ -69,17 +69,7 @@ export class GraphqlQueryFilterFieldParser {
|
||||
useDirectTableReference,
|
||||
);
|
||||
}
|
||||
const filterEntries = Object.entries(filterValue);
|
||||
|
||||
if (filterEntries.length !== 1) {
|
||||
throw new GraphqlQueryRunnerException(
|
||||
`Filter for field "${key}" must have exactly one operator, received ${filterEntries.length}`,
|
||||
GraphqlQueryRunnerExceptionCode.INVALID_QUERY_INPUT,
|
||||
{ userFriendlyMessage: msg`Invalid filter value for field "${key}"` },
|
||||
);
|
||||
}
|
||||
|
||||
const [[operator, value]] = filterEntries;
|
||||
const [[operator, value]] = Object.entries(filterValue);
|
||||
|
||||
if (
|
||||
ARRAY_OPERATORS.includes(operator) &&
|
||||
|
||||
Reference in New Issue
Block a user