@@ -126,7 +126,7 @@ const handleDotFields = (object) => {
126126 value = undefined ;
127127 }
128128 /* eslint-disable no-cond-assign */
129- while ( next = components . shift ( ) ) {
129+ while ( next = components . shift ( ) ) {
130130 /* eslint-enable no-cond-assign */
131131 currentObj [ next ] = currentObj [ next ] || { } ;
132132 if ( components . length === 0 ) {
@@ -149,7 +149,7 @@ const validateKeys = (object) => {
149149
150150 if ( key . includes ( '$' ) || key . includes ( '.' ) ) {
151151 throw new Parse . Error ( Parse . Error . INVALID_NESTED_KEY , "Nested keys should not contain the '$' or '.' characters" ) ;
152- }
152+ }
153153 }
154154 }
155155}
@@ -165,7 +165,7 @@ const joinTablesForSchema = (schema) => {
165165 } ) ;
166166 }
167167 return list ;
168- }
168+ }
169169
170170const buildWhereClause = ( { schema, query, index } ) => {
171171 let patterns = [ ] ;
@@ -174,8 +174,8 @@ const buildWhereClause = ({ schema, query, index }) => {
174174
175175 schema = toPostgresSchema ( schema ) ;
176176 for ( let fieldName in query ) {
177- let isArrayField = schema . fields
178- && schema . fields [ fieldName ]
177+ let isArrayField = schema . fields
178+ && schema . fields [ fieldName ]
179179 && schema . fields [ fieldName ] . type === 'Array' ;
180180 let initialPatternsLength = patterns . length ;
181181 let fieldValue = query [ fieldName ] ;
@@ -186,14 +186,14 @@ const buildWhereClause = ({ schema, query, index }) => {
186186 if ( fieldValue . $exists === false ) {
187187 continue ;
188188 }
189- }
189+ }
190190
191191 if ( fieldName . indexOf ( '.' ) >= 0 ) {
192192 let components = fieldName . split ( '.' ) . map ( ( cmpt , index ) => {
193193 if ( index === 0 ) {
194194 return `"${ cmpt } "` ;
195195 }
196- return `'${ cmpt } '` ;
196+ return `'${ cmpt } '` ;
197197 } ) ;
198198 let name = components . slice ( 0 , components . length - 1 ) . join ( '->' ) ;
199199 name += '->>' + components [ components . length - 1 ] ;
@@ -252,7 +252,7 @@ const buildWhereClause = ({ schema, query, index }) => {
252252 const isInOrNin = Array . isArray ( fieldValue . $in ) || Array . isArray ( fieldValue . $nin ) ;
253253 if ( Array . isArray ( fieldValue . $in ) &&
254254 isArrayField &&
255- schema . fields [ fieldName ] . contents &&
255+ schema . fields [ fieldName ] . contents &&
256256 schema . fields [ fieldName ] . contents . type === 'String' ) {
257257 let inPatterns = [ ] ;
258258 let allowNull = false ;
@@ -439,7 +439,7 @@ export class PostgresStorageAdapter {
439439 return this . _client . tx ( t => {
440440 const q1 = this . createTable ( className , schema , t ) ;
441441 const q2 = t . none ( 'INSERT INTO "_SCHEMA" ("className", "schema", "isParseClass") VALUES ($<className>, $<schema>, true)' , { className, schema } ) ;
442-
442+
443443 return t . batch ( [ q1 , q2 ] ) ;
444444 } )
445445 . then ( ( ) => {
@@ -680,7 +680,7 @@ export class PostgresStorageAdapter {
680680 delete object [ fieldName ] ;
681681 fieldName = 'authData' ;
682682 }
683-
683+
684684 columnsArray . push ( fieldName ) ;
685685 if ( ! schema . fields [ fieldName ] && className === '_User' ) {
686686 if ( fieldName === '_email_verify_token' ||
@@ -726,7 +726,7 @@ export class PostgresStorageAdapter {
726726 } else {
727727 valuesArray . push ( JSON . stringify ( object [ fieldName ] ) ) ;
728728 }
729- break ;
729+ break ;
730730 case 'Object' :
731731 case 'String' :
732732 case 'Number' :
@@ -843,7 +843,7 @@ export class PostgresStorageAdapter {
843843 // This recursively sets the json_object
844844 // Only 1 level deep
845845 let generate = ( jsonb , key , value ) => {
846- return `json_object_set_key(COALESCE(${ jsonb } , '{}'::jsonb), ${ key } , ${ value } )::jsonb` ;
846+ return `json_object_set_key(COALESCE(${ jsonb } , '{}'::jsonb), ${ key } , ${ value } )::jsonb` ;
847847 }
848848 let lastKey = `$${ index } :name` ;
849849 let fieldNameIndex = index ;
@@ -926,7 +926,7 @@ export class PostgresStorageAdapter {
926926 && schema . fields [ fieldName ]
927927 && schema . fields [ fieldName ] . type === 'Object' ) {
928928 const keysToDelete = Object . keys ( originalUpdate ) . filter ( k => {
929- // choose top level fields that have a delete operation set
929+ // choose top level fields that have a delete operation set
930930 return originalUpdate [ k ] . __op === 'Delete' && k . split ( '.' ) . length === 2
931931 } ) . map ( k => k . split ( '.' ) [ 1 ] ) ;
932932
@@ -990,7 +990,7 @@ export class PostgresStorageAdapter {
990990 let values = [ className ] ;
991991 let where = buildWhereClause ( { schema, query, index : 2 } )
992992 values . push ( ...where . values ) ;
993-
993+
994994 const wherePattern = where . pattern . length > 0 ? `WHERE ${ where . pattern } ` : '' ;
995995 const limitPattern = hasLimit ? `LIMIT $${ values . length + 1 } ` : '' ;
996996 if ( hasLimit ) {
0 commit comments