Skip to content

Commit 56a9f50

Browse files
committed
remove debug statements
1 parent 685a089 commit 56a9f50

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

spec/CloudCode.spec.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,25 +1998,6 @@ describe('beforeFind hooks', () => {
19981998
});
19991999
});
20002000
});
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-
});*/
20202001

20212002
it('should have object found with nested relational data query', async () => {
20222003
const obj1 = Parse.Object.extend('TestObject');

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
12781278
object = handleDotFields(object);
12791279

12801280
validateKeys(object);
1281-
console.log('*********1' + object);
12821281
Object.keys(object).forEach(fieldName => {
12831282
if (object[fieldName] === null) {
12841283
return;
@@ -1294,7 +1293,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
12941293

12951294
columnsArray.push(fieldName);
12961295
if (!schema.fields[fieldName] && className === '_User') {
1297-
console.log('********2');
12981296
if (
12991297
fieldName === '_email_verify_token' ||
13001298
fieldName === '_failed_login_count' ||
@@ -1325,8 +1323,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
13251323
}
13261324
return;
13271325
}
1328-
console.log('********3' + fieldName);
1329-
console.log('********4' + schema.fields);
13301326
switch (schema.fields[fieldName].type) {
13311327
case 'Date':
13321328
if (object[fieldName]) {
@@ -1369,7 +1365,6 @@ export class PostgresStorageAdapter implements StorageAdapter {
13691365
throw `Type ${schema.fields[fieldName].type} not supported yet`;
13701366
}
13711367
});
1372-
console.log('********5');
13731368
columnsArray = columnsArray.concat(Object.keys(geoPoints));
13741369
const initialValues = valuesArray.map((val, index) => {
13751370
let termination = '';

0 commit comments

Comments
 (0)