feat: add extended support for versioned entities in the CLI (#3912)
This commit is contained in:
@@ -8,8 +8,7 @@ import { translateToNewRequest } from "../rest"
|
||||
import { translateToGQLRequest } from "../graphql"
|
||||
|
||||
const versionedObject = z.object({
|
||||
// v is a stringified number
|
||||
v: z.string().regex(/^\d+$/).transform(Number),
|
||||
v: z.number(),
|
||||
})
|
||||
|
||||
export const HoppCollection = createVersionedEntity({
|
||||
@@ -26,7 +25,7 @@ export const HoppCollection = createVersionedEntity({
|
||||
// For V1 we have to check the schema
|
||||
const result = V1_VERSION.schema.safeParse(data)
|
||||
|
||||
return result.success ? 0 : null
|
||||
return result.success ? 1 : null
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user