@@ -176,7 +176,7 @@ const volatileClasses = Object.freeze([
176
176
const userIdRegex = / ^ [ a - z A - Z 0 - 9 ] { 10 } $ / ;
177
177
// Anything that start with role
178
178
const roleRegex = / ^ r o l e : .* / ;
179
- // Anything that start with readUserFields
179
+ // Anything that starts with readUserFields
180
180
const pointerPermissionRegex = / ^ r e a d U s e r F i e l d s : .* / ;
181
181
// * permission
182
182
const publicRegex = / ^ \* $ / ;
@@ -908,10 +908,15 @@ export default class SchemaController {
908
908
let defaultValueType = getType ( fieldType . defaultValue ) ;
909
909
if ( typeof defaultValueType === 'string' ) {
910
910
defaultValueType = { type : defaultValueType } ;
911
- } else if ( typeof defaultValueType === 'object' && fieldType . type === 'Relation' ) {
911
+ } else if (
912
+ typeof defaultValueType === 'object' &&
913
+ fieldType . type === 'Relation'
914
+ ) {
912
915
return {
913
916
code : Parse . Error . INCORRECT_TYPE ,
914
- error : `The 'default value' option is not applicable for ${ typeToString ( fieldType ) } `
917
+ error : `The 'default value' option is not applicable for ${ typeToString (
918
+ fieldType
919
+ ) } `,
915
920
} ;
916
921
}
917
922
if ( ! dbTypeMatchesObjectType ( fieldType , defaultValueType ) ) {
@@ -926,7 +931,9 @@ export default class SchemaController {
926
931
if ( typeof fieldType === 'object' && fieldType . type === 'Relation' ) {
927
932
return {
928
933
code : Parse . Error . INCORRECT_TYPE ,
929
- error : `The 'required' option is not applicable for ${ typeToString ( fieldType ) } `
934
+ error : `The 'required' option is not applicable for ${ typeToString (
935
+ fieldType
936
+ ) } `,
930
937
} ;
931
938
}
932
939
}
0 commit comments