Skip to content

Commit 10aa585

Browse files
authored
Typo Fix (#56)
1 parent 0538fca commit 10aa585

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Cloud Code Functions can also take parameters. It's recommended to place all par
269269
// A simple Parse Hook Function route that returns "Hello World".
270270
app.post("hello",
271271
name: "hello") { req async throws -> ParseHookResponse<String> in
272-
// Note that `ParseHookResponse<String>` means a "successfull"
272+
// Note that `ParseHookResponse<String>` means a "successful"
273273
// response will return a "String" type.
274274
if let error: ParseHookResponse<String> = checkHeaders(req) {
275275
return error
@@ -297,7 +297,7 @@ app.post("hello",
297297
app.post("score", "save", "before",
298298
object: GameScore.self,
299299
trigger: .beforeSave) { req async throws -> ParseHookResponse<GameScore> in
300-
// Note that `ParseHookResponse<GameScore>` means a "successfull"
300+
// Note that `ParseHookResponse<GameScore>` means a "successful"
301301
// response will return a "GameScore" type.
302302
if let error: ParseHookResponse<GameScore> = checkHeaders(req) {
303303
return error
@@ -325,7 +325,7 @@ app.post("score", "save", "before",
325325
app.post("score", "find", "before",
326326
object: GameScore.self,
327327
trigger: .beforeFind) { req async throws -> ParseHookResponse<[GameScore]> in
328-
// Note that `ParseHookResponse<[GameScore]>` means a "successfull"
328+
// Note that `ParseHookResponse<[GameScore]>` means a "successful"
329329
// response will return a "[GameScore]" type.
330330
if let error: ParseHookResponse<[GameScore]> = checkHeaders(req) {
331331
return error
@@ -352,7 +352,7 @@ app.post("score", "find", "before",
352352
app.post("user", "login", "after",
353353
object: User.self,
354354
trigger: .afterLogin) { req async throws -> ParseHookResponse<Bool> in
355-
// Note that `ParseHookResponse<Bool>` means a "successfull"
355+
// Note that `ParseHookResponse<Bool>` means a "successful"
356356
// response will return a "Bool" type. Bool is the standard response with
357357
// a "true" response meaning everything is okay or continue.
358358
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -368,7 +368,7 @@ app.post("user", "login", "after",
368368
// A Parse Hook Trigger route for `ParseFile`.
369369
app.on("file", "save", "before",
370370
trigger: .beforeSave) { req async throws -> ParseHookResponse<Bool> in
371-
// Note that `ParseHookResponse<Bool>` means a "successfull"
371+
// Note that `ParseHookResponse<Bool>` means a "successful"
372372
// response will return a "Bool" type. Bool is the standard response with
373373
// a "true" response meaning everything is okay or continue. Sending "false"
374374
// in this case will reject saving the file.
@@ -385,7 +385,7 @@ app.on("file", "save", "before",
385385
// Another Parse Hook Trigger route for `ParseFile`.
386386
app.post("file", "delete", "before",
387387
trigger: .beforeDelete) { req async throws -> ParseHookResponse<Bool> in
388-
// Note that `ParseHookResponse<Bool>` means a "successfull"
388+
// Note that `ParseHookResponse<Bool>` means a "successful"
389389
// response will return a "Bool" type. Bool is the standard response with
390390
// a "true" response meaning everything is okay or continue.
391391
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -401,7 +401,7 @@ app.post("file", "delete", "before",
401401
// A Parse Hook Trigger route for `ParseLiveQuery`.
402402
app.post("connect", "before",
403403
trigger: .beforeConnect) { req async throws -> ParseHookResponse<Bool> in
404-
// Note that `ParseHookResponse<Bool>` means a "successfull"
404+
// Note that `ParseHookResponse<Bool>` means a "successful"
405405
// response will return a "Bool" type. Bool is the standard response with
406406
// a "true" response meaning everything is okay or continue.
407407
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -418,7 +418,7 @@ app.post("connect", "before",
418418
app.post("score", "subscribe", "before",
419419
object: GameScore.self,
420420
trigger: .beforeSubscribe) { req async throws -> ParseHookResponse<Bool> in
421-
// Note that `ParseHookResponse<Bool>` means a "successfull"
421+
// Note that `ParseHookResponse<Bool>` means a "successful"
422422
// response will return a "Bool" type. Bool is the standard response with
423423
// a "true" response meaning everything is okay or continue.
424424
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -435,7 +435,7 @@ app.post("score", "subscribe", "before",
435435
app.post("score", "event", "after",
436436
object: GameScore.self,
437437
trigger: .afterEvent) { req async throws -> ParseHookResponse<Bool> in
438-
// Note that `ParseHookResponse<Bool>` means a "successfull"
438+
// Note that `ParseHookResponse<Bool>` means a "successful"
439439
// response will return a "Bool" type. Bool is the standard response with
440440
// a "true" response meaning everything is okay or continue.
441441
if let error: ParseHookResponse<Bool> = checkHeaders(req) {

Sources/ParseServerSwift/routes.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func routes(_ app: Application) throws {
1717
// A simple Parse Hook Function route that returns "Hello World".
1818
app.post("hello",
1919
name: "hello") { req async throws -> ParseHookResponse<String> in
20-
// Note that `ParseHookResponse<String>` means a "successfull"
20+
// Note that `ParseHookResponse<String>` means a "successful"
2121
// response will return a "String" type.
2222
if let error: ParseHookResponse<String> = checkHeaders(req) {
2323
return error
@@ -41,7 +41,7 @@ func routes(_ app: Application) throws {
4141
// Another simple Parse Hook Function route that returns the version of the server.
4242
app.post("version",
4343
name: "version") { req async throws -> ParseHookResponse<String> in
44-
// Note that `ParseHookResponse<String>` means a "successfull"
44+
// Note that `ParseHookResponse<String>` means a "successful"
4545
// response will return a "String" type.
4646
if let error: ParseHookResponse<String> = checkHeaders(req) {
4747
return error
@@ -92,7 +92,7 @@ func routes(_ app: Application) throws {
9292
app.post("score", "save", "before",
9393
object: GameScore.self,
9494
trigger: .beforeSave) { req async throws -> ParseHookResponse<GameScore> in
95-
// Note that `ParseHookResponse<GameScore>` means a "successfull"
95+
// Note that `ParseHookResponse<GameScore>` means a "successful"
9696
// response will return a "GameScore" type.
9797
if let error: ParseHookResponse<GameScore> = checkHeaders(req) {
9898
return error
@@ -120,7 +120,7 @@ func routes(_ app: Application) throws {
120120
app.post("score", "find", "before",
121121
object: GameScore.self,
122122
trigger: .beforeFind) { req async throws -> ParseHookResponse<[GameScore]> in
123-
// Note that `ParseHookResponse<[GameScore]>` means a "successfull"
123+
// Note that `ParseHookResponse<[GameScore]>` means a "successful"
124124
// response will return a "[GameScore]" type.
125125
if let error: ParseHookResponse<[GameScore]> = checkHeaders(req) {
126126
return error
@@ -147,7 +147,7 @@ func routes(_ app: Application) throws {
147147
app.post("user", "login", "after",
148148
object: User.self,
149149
trigger: .afterLogin) { req async throws -> ParseHookResponse<Bool> in
150-
// Note that `ParseHookResponse<Bool>` means a "successfull"
150+
// Note that `ParseHookResponse<Bool>` means a "successful"
151151
// response will return a "Bool" type. Bool is the standard response with
152152
// a "true" response meaning everything is okay or continue.
153153
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -163,7 +163,7 @@ func routes(_ app: Application) throws {
163163
// A Parse Hook Trigger route for `ParseFile`.
164164
app.on("file", "save", "before",
165165
trigger: .beforeSave) { req async throws -> ParseHookResponse<Bool> in
166-
// Note that `ParseHookResponse<Bool>` means a "successfull"
166+
// Note that `ParseHookResponse<Bool>` means a "successful"
167167
// response will return a "Bool" type. Bool is the standard response with
168168
// a "true" response meaning everything is okay or continue. Sending "false"
169169
// in this case will reject saving the file.
@@ -180,7 +180,7 @@ func routes(_ app: Application) throws {
180180
// Another Parse Hook Trigger route for `ParseFile`.
181181
app.post("file", "delete", "before",
182182
trigger: .beforeDelete) { req async throws -> ParseHookResponse<Bool> in
183-
// Note that `ParseHookResponse<Bool>` means a "successfull"
183+
// Note that `ParseHookResponse<Bool>` means a "successful"
184184
// response will return a "Bool" type. Bool is the standard response with
185185
// a "true" response meaning everything is okay or continue.
186186
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -196,7 +196,7 @@ func routes(_ app: Application) throws {
196196
// A Parse Hook Trigger route for `ParseLiveQuery`.
197197
app.post("connect", "before",
198198
trigger: .beforeConnect) { req async throws -> ParseHookResponse<Bool> in
199-
// Note that `ParseHookResponse<Bool>` means a "successfull"
199+
// Note that `ParseHookResponse<Bool>` means a "successful"
200200
// response will return a "Bool" type. Bool is the standard response with
201201
// a "true" response meaning everything is okay or continue.
202202
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -213,7 +213,7 @@ func routes(_ app: Application) throws {
213213
app.post("score", "subscribe", "before",
214214
object: GameScore.self,
215215
trigger: .beforeSubscribe) { req async throws -> ParseHookResponse<Bool> in
216-
// Note that `ParseHookResponse<Bool>` means a "successfull"
216+
// Note that `ParseHookResponse<Bool>` means a "successful"
217217
// response will return a "Bool" type. Bool is the standard response with
218218
// a "true" response meaning everything is okay or continue.
219219
if let error: ParseHookResponse<Bool> = checkHeaders(req) {
@@ -230,7 +230,7 @@ func routes(_ app: Application) throws {
230230
app.post("score", "event", "after",
231231
object: GameScore.self,
232232
trigger: .afterEvent) { req async throws -> ParseHookResponse<Bool> in
233-
// Note that `ParseHookResponse<Bool>` means a "successfull"
233+
// Note that `ParseHookResponse<Bool>` means a "successful"
234234
// response will return a "Bool" type. Bool is the standard response with
235235
// a "true" response meaning everything is okay or continue.
236236
if let error: ParseHookResponse<Bool> = checkHeaders(req) {

0 commit comments

Comments
 (0)