Skip to content

Commit

Permalink
tableId imigration
Browse files Browse the repository at this point in the history
  • Loading branch information
starheim98 committed Feb 5, 2025
1 parent 3b2420b commit fda2f1f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frisk.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function createSchemaComponent(schemas: RegelrettSchema[]) {
const response = await createRegelrettContext({
name: func.data.name,
teamId: teamId,
formId: schemaId,
tableId: schemaId,
});
const contextId = response.id;
addMetadata.mutateAsync({
Expand Down Expand Up @@ -504,8 +504,8 @@ async function fetchFromRegelrett(path: string, options: RequestInit = {}) {
export async function createRegelrettContext({
name,
teamId,
formId,
}: { name: string; teamId: string; formId: string }) {
tableId,
}: { name: string; teamId: string; tableId: string }) {
const response = await fetchFromRegelrett("/contexts", {
method: "POST",
headers: {
Expand All @@ -514,7 +514,7 @@ export async function createRegelrettContext({
body: JSON.stringify({
name,
teamId,
formId,
tableId,
}),
});

Expand All @@ -524,7 +524,4 @@ export async function createRegelrettContext({

const RegelrettContext = object({
id: string(),
name: string(),
formId: string(),
teamId: string(),
});

0 comments on commit fda2f1f

Please sign in to comment.