From 10aa585ee4fe5af360dce18704c36e8395666f54 Mon Sep 17 00:00:00 2001 From: Jayson Ng Date: Sun, 14 Jan 2024 00:07:41 +0800 Subject: [PATCH] Typo Fix (#56) --- README.md | 18 +++++++++--------- Sources/ParseServerSwift/routes.swift | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5e50d2d9..214c560e 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ Cloud Code Functions can also take parameters. It's recommended to place all par // A simple Parse Hook Function route that returns "Hello World". app.post("hello", name: "hello") { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "String" type. if let error: ParseHookResponse = checkHeaders(req) { return error @@ -297,7 +297,7 @@ app.post("hello", app.post("score", "save", "before", object: GameScore.self, trigger: .beforeSave) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "GameScore" type. if let error: ParseHookResponse = checkHeaders(req) { return error @@ -325,7 +325,7 @@ app.post("score", "save", "before", app.post("score", "find", "before", object: GameScore.self, trigger: .beforeFind) { req async throws -> ParseHookResponse<[GameScore]> in - // Note that `ParseHookResponse<[GameScore]>` means a "successfull" + // Note that `ParseHookResponse<[GameScore]>` means a "successful" // response will return a "[GameScore]" type. if let error: ParseHookResponse<[GameScore]> = checkHeaders(req) { return error @@ -352,7 +352,7 @@ app.post("score", "find", "before", app.post("user", "login", "after", object: User.self, trigger: .afterLogin) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -368,7 +368,7 @@ app.post("user", "login", "after", // A Parse Hook Trigger route for `ParseFile`. app.on("file", "save", "before", trigger: .beforeSave) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. Sending "false" // in this case will reject saving the file. @@ -385,7 +385,7 @@ app.on("file", "save", "before", // Another Parse Hook Trigger route for `ParseFile`. app.post("file", "delete", "before", trigger: .beforeDelete) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -401,7 +401,7 @@ app.post("file", "delete", "before", // A Parse Hook Trigger route for `ParseLiveQuery`. app.post("connect", "before", trigger: .beforeConnect) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -418,7 +418,7 @@ app.post("connect", "before", app.post("score", "subscribe", "before", object: GameScore.self, trigger: .beforeSubscribe) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -435,7 +435,7 @@ app.post("score", "subscribe", "before", app.post("score", "event", "after", object: GameScore.self, trigger: .afterEvent) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { diff --git a/Sources/ParseServerSwift/routes.swift b/Sources/ParseServerSwift/routes.swift index c0d304bc..f3aa047a 100644 --- a/Sources/ParseServerSwift/routes.swift +++ b/Sources/ParseServerSwift/routes.swift @@ -17,7 +17,7 @@ func routes(_ app: Application) throws { // A simple Parse Hook Function route that returns "Hello World". app.post("hello", name: "hello") { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "String" type. if let error: ParseHookResponse = checkHeaders(req) { return error @@ -41,7 +41,7 @@ func routes(_ app: Application) throws { // Another simple Parse Hook Function route that returns the version of the server. app.post("version", name: "version") { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "String" type. if let error: ParseHookResponse = checkHeaders(req) { return error @@ -92,7 +92,7 @@ func routes(_ app: Application) throws { app.post("score", "save", "before", object: GameScore.self, trigger: .beforeSave) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "GameScore" type. if let error: ParseHookResponse = checkHeaders(req) { return error @@ -120,7 +120,7 @@ func routes(_ app: Application) throws { app.post("score", "find", "before", object: GameScore.self, trigger: .beforeFind) { req async throws -> ParseHookResponse<[GameScore]> in - // Note that `ParseHookResponse<[GameScore]>` means a "successfull" + // Note that `ParseHookResponse<[GameScore]>` means a "successful" // response will return a "[GameScore]" type. if let error: ParseHookResponse<[GameScore]> = checkHeaders(req) { return error @@ -147,7 +147,7 @@ func routes(_ app: Application) throws { app.post("user", "login", "after", object: User.self, trigger: .afterLogin) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -163,7 +163,7 @@ func routes(_ app: Application) throws { // A Parse Hook Trigger route for `ParseFile`. app.on("file", "save", "before", trigger: .beforeSave) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. Sending "false" // in this case will reject saving the file. @@ -180,7 +180,7 @@ func routes(_ app: Application) throws { // Another Parse Hook Trigger route for `ParseFile`. app.post("file", "delete", "before", trigger: .beforeDelete) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -196,7 +196,7 @@ func routes(_ app: Application) throws { // A Parse Hook Trigger route for `ParseLiveQuery`. app.post("connect", "before", trigger: .beforeConnect) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -213,7 +213,7 @@ func routes(_ app: Application) throws { app.post("score", "subscribe", "before", object: GameScore.self, trigger: .beforeSubscribe) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) { @@ -230,7 +230,7 @@ func routes(_ app: Application) throws { app.post("score", "event", "after", object: GameScore.self, trigger: .afterEvent) { req async throws -> ParseHookResponse in - // Note that `ParseHookResponse` means a "successfull" + // Note that `ParseHookResponse` means a "successful" // response will return a "Bool" type. Bool is the standard response with // a "true" response meaning everything is okay or continue. if let error: ParseHookResponse = checkHeaders(req) {