chore: 🔥 Remove ownerIds
This commit is contained in:
@ -24,7 +24,7 @@ export const useCredentials = ({
|
||||
}
|
||||
|
||||
export const createCredentials = async (
|
||||
credentials: Omit<Credentials, 'id' | 'iv' | 'createdAt' | 'ownerId'>
|
||||
credentials: Omit<Credentials, 'id' | 'iv' | 'createdAt'>
|
||||
) =>
|
||||
sendRequest<{
|
||||
credentials: Credentials
|
||||
|
@ -13,7 +13,7 @@ export const useCustomDomains = ({
|
||||
onError: (error: Error) => void
|
||||
}) => {
|
||||
const { data, error, mutate } = useSWR<
|
||||
{ customDomains: Omit<CustomDomain, 'createdAt' | 'ownerId'>[] },
|
||||
{ customDomains: Omit<CustomDomain, 'createdAt'>[] },
|
||||
Error
|
||||
>(
|
||||
workspaceId ? `/api/customDomains?${stringify({ workspaceId })}` : null,
|
||||
@ -29,7 +29,7 @@ export const useCustomDomains = ({
|
||||
|
||||
export const createCustomDomain = async (
|
||||
workspaceId: string,
|
||||
customDomain: Omit<CustomDomain, 'createdAt' | 'workspaceId' | 'ownerId'>
|
||||
customDomain: Omit<CustomDomain, 'createdAt' | 'workspaceId'>
|
||||
) =>
|
||||
sendRequest<{
|
||||
credentials: Credentials
|
||||
|
@ -36,7 +36,6 @@ export const parsePublicTypebotToTypebot = (
|
||||
updatedAt: existingTypebot.updatedAt,
|
||||
publishedTypebotId: typebot.id,
|
||||
folderId: existingTypebot.folderId,
|
||||
ownerId: existingTypebot.ownerId,
|
||||
icon: existingTypebot.icon,
|
||||
workspaceId: existingTypebot.workspaceId,
|
||||
})
|
||||
|
@ -418,7 +418,6 @@ export const parseNewTypebot = ({
|
||||
steps: [startStep],
|
||||
}
|
||||
return {
|
||||
ownerId: null,
|
||||
folderId,
|
||||
name,
|
||||
workspaceId,
|
||||
|
Reference in New Issue
Block a user