Skip to content

Commit a86a649

Browse files
committed
nits
1 parent 56a9f50 commit a86a649

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

spec/CloudCode.spec.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,33 +2440,6 @@ describe('afterFind hooks', () => {
24402440
expect(pointer.get('foo')).toBe('bar');
24412441
});
24422442

2443-
it('can set a pointer object in afterFind with User', async () => {
2444-
await Parse.User.signUp('tupac', 'shakur');
2445-
const obj = new Parse.Object('MyObject');
2446-
obj.set('xyz', 'yolo');
2447-
await obj.save();
2448-
Parse.Cloud.afterFind('MyObject', async ({ user, objects }) => {
2449-
const otherObject = new Parse.Object('Test');
2450-
otherObject.set('foo', 'bar');
2451-
otherObject.set('user', user);
2452-
for (const property in objects[0].attributes) {
2453-
if (Object.prototype.hasOwnProperty.call(objects[0].attributes, property)) {
2454-
otherObject.set(property, objects[0].attributes[property]);
2455-
}
2456-
}
2457-
await otherObject.save(null, { useMasterKey: true });
2458-
const query = new Parse.Query('Test');
2459-
query.equalTo('foo', 'bar');
2460-
const obj = await query.first();
2461-
expect(obj.get('user').id).toEqual(user.id);
2462-
expect(obj.get('xyz')).toBe('yolo');
2463-
});
2464-
const query = new Parse.Query('MyObject');
2465-
query.equalTo('objectId', obj.id);
2466-
const obj2 = await query.first();
2467-
expect(obj2.get('xyz')).toBe('yolo');
2468-
});
2469-
24702443
it('can set invalid object in afterFind', async () => {
24712444
const obj = new Parse.Object('MyObject');
24722445
await obj.save();

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,7 @@ export class PostgresStorageAdapter implements StorageAdapter {
13651365
throw `Type ${schema.fields[fieldName].type} not supported yet`;
13661366
}
13671367
});
1368+
13681369
columnsArray = columnsArray.concat(Object.keys(geoPoints));
13691370
const initialValues = valuesArray.map((val, index) => {
13701371
let termination = '';

0 commit comments

Comments
 (0)