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