Skip to content

Commit

Permalink
Allow multiple user tables (#3089)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-codaio authored Oct 17, 2024
1 parent 8fd7bcc commit 51cd4c0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
11 changes: 0 additions & 11 deletions dist/testing/upload_validation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codahq/packs-sdk",
"version": "1.8.1-prerelease.1",
"version": "1.8.1-prerelease.2",
"license": "MIT",
"workspaces": [
"dev/eslint"
Expand Down
11 changes: 0 additions & 11 deletions testing/upload_validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2143,17 +2143,6 @@ ${endpointKey ? 'endpointKey is set' : `requiresEndpointUrl is ${requiresEndpoin
}
}
}
})
.superRefine((data, context) => {
const syncTables = (data.syncTables as SyncTable[]) || [];
const userTables = syncTables.filter(syncTable => syncTable.role === TableRole.Users);
if (userTables.length > 1) {
context.addIssue({
code: z.ZodIssueCode.custom,
path: ['syncTables'],
message: 'Only one sync table can have the role "Users".',
});
}
});
}

Expand Down

0 comments on commit 51cd4c0

Please sign in to comment.