Fix tests
This commit is contained in:
parent
2d0ac5ffba
commit
91306c79eb
|
@ -1566,15 +1566,13 @@ describe.each([
|
|||
() => ({
|
||||
user: {
|
||||
name: "user",
|
||||
relationshipType: RelationshipType.ONE_TO_MANY,
|
||||
type: FieldType.BB_REFERENCE,
|
||||
subtype: FieldTypeSubtypes.BB_REFERENCE.USER,
|
||||
},
|
||||
users: {
|
||||
name: "users",
|
||||
type: FieldType.BB_REFERENCE,
|
||||
subtype: FieldTypeSubtypes.BB_REFERENCE.USER,
|
||||
relationshipType: RelationshipType.MANY_TO_MANY,
|
||||
subtype: FieldTypeSubtypes.BB_REFERENCE.USERS,
|
||||
},
|
||||
}),
|
||||
() => config.createUser(),
|
||||
|
|
|
@ -48,6 +48,8 @@ function generateSchema(
|
|||
case FieldTypes.OPTIONS:
|
||||
case FieldTypes.LONGFORM:
|
||||
case FieldTypes.BARCODEQR:
|
||||
schema.text(key)
|
||||
break
|
||||
case FieldTypes.BB_REFERENCE:
|
||||
const subtype = column.subtype as FieldSubtype
|
||||
switch (subtype) {
|
||||
|
|
|
@ -43,6 +43,6 @@ export enum FieldSubtype {
|
|||
export const FieldTypeSubtypes = {
|
||||
BB_REFERENCE: {
|
||||
USER: FieldSubtype.USER,
|
||||
USESR: FieldSubtype.USERS,
|
||||
USERS: FieldSubtype.USERS,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue