File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
src/Adapters/Storage/Postgres Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -1998,25 +1998,6 @@ describe('beforeFind hooks', () => {
1998
1998
} ) ;
1999
1999
} ) ;
2000
2000
} ) ;
2001
- /*
2002
- it('should use the modified the query.and', async () => {
2003
- Parse.Cloud.beforeFind('MyObject', req => {
2004
- const additionalQ = new Parse.Query('MyObject');
2005
- additionalQ.equalTo('forced', true);
2006
- return Parse.Query.and(req.query, additionalQ);
2007
- });
2008
-
2009
- const obj0 = Parse.Object.extend('MyObject');
2010
- obj0.set('forced', false);
2011
- const obj1 = Parse.Object.extend('MyObject');
2012
- obj1.set('forced', true);
2013
-
2014
- Parse.Object.saveAll([obj0, obj1]);
2015
- const q = new Parse.Query('MyObject');
2016
- q.equalTo('forced', false);
2017
- const res = await q.find();
2018
- expect(res.id).toEqual(item1.id);
2019
- });*/
2020
2001
2021
2002
it ( 'should have object found with nested relational data query' , async ( ) => {
2022
2003
const obj1 = Parse . Object . extend ( 'TestObject' ) ;
Original file line number Diff line number Diff line change @@ -1278,7 +1278,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
1278
1278
object = handleDotFields ( object ) ;
1279
1279
1280
1280
validateKeys ( object ) ;
1281
- console . log ( '*********1' + object ) ;
1282
1281
Object . keys ( object ) . forEach ( fieldName => {
1283
1282
if ( object [ fieldName ] === null ) {
1284
1283
return ;
@@ -1294,7 +1293,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
1294
1293
1295
1294
columnsArray . push ( fieldName ) ;
1296
1295
if ( ! schema . fields [ fieldName ] && className === '_User' ) {
1297
- console . log ( '********2' ) ;
1298
1296
if (
1299
1297
fieldName === '_email_verify_token' ||
1300
1298
fieldName === '_failed_login_count' ||
@@ -1325,8 +1323,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
1325
1323
}
1326
1324
return ;
1327
1325
}
1328
- console . log ( '********3' + fieldName ) ;
1329
- console . log ( '********4' + schema . fields ) ;
1330
1326
switch ( schema . fields [ fieldName ] . type ) {
1331
1327
case 'Date' :
1332
1328
if ( object [ fieldName ] ) {
@@ -1369,7 +1365,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
1369
1365
throw `Type ${ schema . fields [ fieldName ] . type } not supported yet` ;
1370
1366
}
1371
1367
} ) ;
1372
- console . log ( '********5' ) ;
1373
1368
columnsArray = columnsArray . concat ( Object . keys ( geoPoints ) ) ;
1374
1369
const initialValues = valuesArray . map ( ( val , index ) => {
1375
1370
let termination = '' ;
You can’t perform that action at this time.
0 commit comments