diff --git a/src/write-functions/templates/events.js b/src/write-functions/templates/events.js index f92c823..0cfba07 100644 --- a/src/write-functions/templates/events.js +++ b/src/write-functions/templates/events.js @@ -18,7 +18,7 @@ export async function handler (event: object) { }` let ruby = `# ${learn} -def handler(event) +def handler(event:, context:) puts event true end` diff --git a/src/write-functions/templates/http.js b/src/write-functions/templates/http.js index 524fe85..103f153 100644 --- a/src/write-functions/templates/http.js +++ b/src/write-functions/templates/http.js @@ -103,7 +103,7 @@ exports.handler = async function http (req) {${nodeBody(path)}}`, } let ruby = path => `# ${learn} -def handler(req, context) +def handler(event:, context:) { statusCode: 200, headers: { diff --git a/src/write-functions/templates/queues.js b/src/write-functions/templates/queues.js index 66ee064..78be180 100644 --- a/src/write-functions/templates/queues.js +++ b/src/write-functions/templates/queues.js @@ -19,7 +19,7 @@ export async function handler (event: object) { }` let ruby = `# ${learn} -def handler(event) +def handler(event:, context:) puts event true end` diff --git a/src/write-functions/templates/scheduled.js b/src/write-functions/templates/scheduled.js index 763e0f7..be52f9a 100644 --- a/src/write-functions/templates/scheduled.js +++ b/src/write-functions/templates/scheduled.js @@ -18,7 +18,7 @@ export async function handler (event: object) { }` let ruby = `# ${learn} -def handler(event) +def handler(event:, context:) puts event true end` diff --git a/src/write-functions/templates/tables-streams.js b/src/write-functions/templates/tables-streams.js index ac1bb81..ccdfe82 100644 --- a/src/write-functions/templates/tables-streams.js +++ b/src/write-functions/templates/tables-streams.js @@ -18,7 +18,7 @@ export async function handler (event: object) { }` let ruby = `# ${learn} -def handler(event) +def handler(event:, context:) puts event true end` diff --git a/src/write-functions/templates/ws.js b/src/write-functions/templates/ws.js index c31a2e6..b4941ff 100644 --- a/src/write-functions/templates/ws.js +++ b/src/write-functions/templates/ws.js @@ -18,7 +18,7 @@ export async function handler (event: object) { }` let ruby = `# ${learn} -def handler(event) +def handler(event:, context:) puts event {statusCode: 200} end`