Skip to content

Commit

Permalink
fix(fifo-queue): wrong return type for cloud.Function in latest wing …
Browse files Browse the repository at this point in the history
…version (#44)

* fix

* lockfile update
  • Loading branch information
MarkMcCulloh authored Dec 30, 2023
1 parent 824d601 commit 3d551a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fifoqueue/fifo-queue.aws.w
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub class FifoQueue_aws impl api.IFifoQueue {
}

pub setConsumer(handler: inflight (str) : void, options: api.SetConsumerOptions?) {
let lambdaFn = new cloud.Function(inflight (event: str): void => {
let lambdaFn = new cloud.Function(inflight (event) => {
let json: Json = unsafeCast(event);
let sqsEvent = SqsEvent.fromJson(event);
for message in sqsEvent.Records {
Expand Down
4 changes: 2 additions & 2 deletions fifoqueue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fifoqueue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/fifoqueue",
"version": "0.0.1",
"version": "0.0.2",
"description": "A wing library to work with FIFO (first-in first-out) Queues",
"author": {
"name": "Elad Cohen",
Expand Down

0 comments on commit 3d551a5

Please sign in to comment.