Skip to content

Commit f65036a

Browse files
authored
Merge pull request #76 from architect/fixruby
fixes ruby
2 parents 0a1f921 + 21f9c66 commit f65036a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/write-functions/templates/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function handler (event: object) {
1818
}`
1919

2020
let ruby = `# ${learn}
21-
def handler(event)
21+
def handler(event:, context:)
2222
puts event
2323
true
2424
end`

src/write-functions/templates/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ exports.handler = async function http (req) {${nodeBody(path)}}`,
103103
}
104104

105105
let ruby = path => `# ${learn}
106-
def handler(req, context)
106+
def handler(event:, context:)
107107
{
108108
statusCode: 200,
109109
headers: {

src/write-functions/templates/queues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function handler (event: object) {
1919
}`
2020

2121
let ruby = `# ${learn}
22-
def handler(event)
22+
def handler(event:, context:)
2323
puts event
2424
true
2525
end`

src/write-functions/templates/scheduled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function handler (event: object) {
1818
}`
1919

2020
let ruby = `# ${learn}
21-
def handler(event)
21+
def handler(event:, context:)
2222
puts event
2323
true
2424
end`

src/write-functions/templates/tables-streams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function handler (event: object) {
1818
}`
1919

2020
let ruby = `# ${learn}
21-
def handler(event)
21+
def handler(event:, context:)
2222
puts event
2323
true
2424
end`

src/write-functions/templates/ws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function handler (event: object) {
1818
}`
1919

2020
let ruby = `# ${learn}
21-
def handler(event)
21+
def handler(event:, context:)
2222
puts event
2323
{statusCode: 200}
2424
end`

0 commit comments

Comments
 (0)