Skip to content

Commit

Permalink
feat(docs): update docs
Browse files Browse the repository at this point in the history
Updates the Wing docs. See details in [workflow run].

[Workflow Run]: https://github.com/winglang/docsite/actions/runs/10810253771

------

*Automatically created via the "update-docs" workflow*

Signed-off-by: monabot <[email protected]>
  • Loading branch information
monadabot committed Sep 11, 2024
1 parent 3f67ff1 commit 4a9cfad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ api.put("/note/:name", inflight (request) => {
});

// Consumer functions (not required for the app to work, but useful for testing)
new cloud.Function(inflight (event: Json?) => {
new cloud.Function(inflight (event: str?) => {
if let event = event {
let parts = event.asStr().split(":");
let parts = event.split(":");
let name = parts.at(0);
let note = parts.at(1);

Expand All @@ -132,7 +132,7 @@ new cloud.Function(inflight (event: Json?) => {
return "event is required `NAME:NOTE`";
}) as "Consumer-PUT";

new cloud.Function(inflight (event: Json?) => {
new cloud.Function(inflight (event: str?) => {
if let event = event {
return http.get("{api.url}/note?name={event}").body;
}
Expand Down

0 comments on commit 4a9cfad

Please sign in to comment.