Skip to content

Commit

Permalink
fix(*): hotfix for ubo data schema for backwards compatibility (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy authored Oct 14, 2024
1 parent 04bd1c6 commit 91ce2f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions apps/backoffice-v2/src/domains/workflows/fetchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,26 +77,26 @@ export const BaseWorkflowByIdSchema = z.object({
.object({
data: z
.object({
nodes: z.array(
z.object({
id: z.string(),
data: z.object({
name: z.string(),
type: z.string(),
sharePercentage: z.number().optional(),
}),
}),
),
edges: z.array(
z.object({
id: z.string(),
source: z.string(),
target: z.string(),
data: z.object({
sharePercentage: z.number().optional(),
}),
}),
),
// nodes: z.array(
// z.object({
// id: z.string(),
// data: z.object({
// name: z.string(),
// type: z.string(),
// sharePercentage: z.number().optional(),
// }),
// }),
// ),
// edges: z.array(
// z.object({
// id: z.string(),
// source: z.string(),
// target: z.string(),
// data: z.object({
// sharePercentage: z.number().optional(),
// }),
// }),
// ),
})
.passthrough()
.optional(),
Expand Down
2 changes: 1 addition & 1 deletion services/workflows-service/prisma/data-migrations

0 comments on commit 91ce2f9

Please sign in to comment.