@@ -269,7 +269,7 @@ Cloud Code Functions can also take parameters. It's recommended to place all par
269
269
// A simple Parse Hook Function route that returns "Hello World".
270
270
app.post (" hello" ,
271
271
name : " hello" ) { req async throws -> ParseHookResponse< String > in
272
- // Note that `ParseHookResponse<String>` means a "successfull "
272
+ // Note that `ParseHookResponse<String>` means a "successful "
273
273
// response will return a "String" type.
274
274
if let error: ParseHookResponse< String > = checkHeaders (req) {
275
275
return error
@@ -297,7 +297,7 @@ app.post("hello",
297
297
app.post (" score" , " save" , " before" ,
298
298
object : GameScore.self ,
299
299
trigger : .beforeSave ) { req async throws -> ParseHookResponse< GameScore> in
300
- // Note that `ParseHookResponse<GameScore>` means a "successfull "
300
+ // Note that `ParseHookResponse<GameScore>` means a "successful "
301
301
// response will return a "GameScore" type.
302
302
if let error: ParseHookResponse< GameScore> = checkHeaders (req) {
303
303
return error
@@ -325,7 +325,7 @@ app.post("score", "save", "before",
325
325
app.post (" score" , " find" , " before" ,
326
326
object : GameScore.self ,
327
327
trigger : .beforeFind ) { req async throws -> ParseHookResponse< [GameScore]> in
328
- // Note that `ParseHookResponse<[GameScore]>` means a "successfull "
328
+ // Note that `ParseHookResponse<[GameScore]>` means a "successful "
329
329
// response will return a "[GameScore]" type.
330
330
if let error: ParseHookResponse< [GameScore]> = checkHeaders (req) {
331
331
return error
@@ -352,7 +352,7 @@ app.post("score", "find", "before",
352
352
app.post (" user" , " login" , " after" ,
353
353
object : User.self ,
354
354
trigger : .afterLogin ) { req async throws -> ParseHookResponse< Bool > in
355
- // Note that `ParseHookResponse<Bool>` means a "successfull "
355
+ // Note that `ParseHookResponse<Bool>` means a "successful "
356
356
// response will return a "Bool" type. Bool is the standard response with
357
357
// a "true" response meaning everything is okay or continue.
358
358
if let error: ParseHookResponse< Bool > = checkHeaders (req) {
@@ -368,7 +368,7 @@ app.post("user", "login", "after",
368
368
// A Parse Hook Trigger route for `ParseFile`.
369
369
app.on (" file" , " save" , " before" ,
370
370
trigger : .beforeSave ) { req async throws -> ParseHookResponse< Bool > in
371
- // Note that `ParseHookResponse<Bool>` means a "successfull "
371
+ // Note that `ParseHookResponse<Bool>` means a "successful "
372
372
// response will return a "Bool" type. Bool is the standard response with
373
373
// a "true" response meaning everything is okay or continue. Sending "false"
374
374
// in this case will reject saving the file.
@@ -385,7 +385,7 @@ app.on("file", "save", "before",
385
385
// Another Parse Hook Trigger route for `ParseFile`.
386
386
app.post (" file" , " delete" , " before" ,
387
387
trigger : .beforeDelete ) { req async throws -> ParseHookResponse< Bool > in
388
- // Note that `ParseHookResponse<Bool>` means a "successfull "
388
+ // Note that `ParseHookResponse<Bool>` means a "successful "
389
389
// response will return a "Bool" type. Bool is the standard response with
390
390
// a "true" response meaning everything is okay or continue.
391
391
if let error: ParseHookResponse< Bool > = checkHeaders (req) {
@@ -401,7 +401,7 @@ app.post("file", "delete", "before",
401
401
// A Parse Hook Trigger route for `ParseLiveQuery`.
402
402
app.post (" connect" , " before" ,
403
403
trigger : .beforeConnect ) { req async throws -> ParseHookResponse< Bool > in
404
- // Note that `ParseHookResponse<Bool>` means a "successfull "
404
+ // Note that `ParseHookResponse<Bool>` means a "successful "
405
405
// response will return a "Bool" type. Bool is the standard response with
406
406
// a "true" response meaning everything is okay or continue.
407
407
if let error: ParseHookResponse< Bool > = checkHeaders (req) {
@@ -418,7 +418,7 @@ app.post("connect", "before",
418
418
app.post (" score" , " subscribe" , " before" ,
419
419
object : GameScore.self ,
420
420
trigger : .beforeSubscribe ) { req async throws -> ParseHookResponse< Bool > in
421
- // Note that `ParseHookResponse<Bool>` means a "successfull "
421
+ // Note that `ParseHookResponse<Bool>` means a "successful "
422
422
// response will return a "Bool" type. Bool is the standard response with
423
423
// a "true" response meaning everything is okay or continue.
424
424
if let error: ParseHookResponse< Bool > = checkHeaders (req) {
@@ -435,7 +435,7 @@ app.post("score", "subscribe", "before",
435
435
app.post (" score" , " event" , " after" ,
436
436
object : GameScore.self ,
437
437
trigger : .afterEvent ) { req async throws -> ParseHookResponse< Bool > in
438
- // Note that `ParseHookResponse<Bool>` means a "successfull "
438
+ // Note that `ParseHookResponse<Bool>` means a "successful "
439
439
// response will return a "Bool" type. Bool is the standard response with
440
440
// a "true" response meaning everything is okay or continue.
441
441
if let error: ParseHookResponse< Bool > = checkHeaders (req) {
0 commit comments