Skip to content

Commit 5ce8c80

Browse files
authored
Merge pull request #385 from dblythy/patch-2
Fix failing tests
2 parents 65ad4b3 + 6988666 commit 5ce8c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Parse.Cloud.define('hello', (req) => {
2-
console.log(req)
2+
req.log.info(req)
33
return 'Hi';
44
});
55

66
Parse.Cloud.define('asyncFunction', async (req) => {
77
await new Promise((resolve) => setTimeout(resolve,1000));
8-
console.log(req)
8+
req.log.info(req)
99
return 'Hi async';
1010
});
1111

1212
Parse.Cloud.beforeSave('Test', () => {
13-
throw new Parse.Error(211,'Saving test objects is not available.')
13+
throw new Parse.Error(212,'Saving test objects is not available.')
1414
});

0 commit comments

Comments
 (0)