Skip to content

Commit ea247c5

Browse files
authored
fix my typos (#579)
1 parent 33c4597 commit ea247c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/cloudcode/cloud-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ You can use an `afterSave` handler to perform lengthy operations after sending a
247247

248248
## Using Request Context
249249

250-
State can be passed from a `beforeSave` handler to an `afterSave` handler in the Reqeuest Context. The following example sends emails to users who are being added to a [Parse.Role's users relation](https://parseplatform.org/Parse-SDK-JS/api/2.1.0/Parse.Role.html#getUsers) asynchronously, so the client receives a response before the emails complete sending:
250+
State can be passed from a `beforeSave` handler to an `afterSave` handler in the Request Context. The following example sends emails to users who are being added to a [Parse.Role's users relation](https://parseplatform.org/Parse-SDK-JS/api/2.1.0/Parse.Role.html#getUsers) asynchronously, so the client receives a response before the emails complete sending:
251251

252252
```javascript
253253
const beforeSave = function beforeSave(request) {
@@ -263,7 +263,7 @@ const beforeSave = function beforeSave(request) {
263263
const afterSave = function afterSave(request) {
264264
const { object: role, context } = request;
265265
if (context && context.buyers) {
266-
const pruchasedItem = getItemFromRole(role);
266+
const purchasedItem = getItemFromRole(role);
267267
const promises = context.buyers.map(emailBuyer.bind(null, purchasedItem));
268268
item.increment('orderCount', context.buyers.length);
269269
promises.push(item.save(null, { useMasterKey: true }));

0 commit comments

Comments
 (0)