From 7ec278aede26a0ed1f85f79b8ad4ba0fe709487b Mon Sep 17 00:00:00 2001 From: Verne Lindner Date: Tue, 31 Mar 2020 08:18:00 -0700 Subject: [PATCH] Update 2019-11-21-debugging-with-tags.md --- posts/2019-11-21-debugging-with-tags.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/2019-11-21-debugging-with-tags.md b/posts/2019-11-21-debugging-with-tags.md index e2c6522ae..6dd25f5bf 100644 --- a/posts/2019-11-21-debugging-with-tags.md +++ b/posts/2019-11-21-debugging-with-tags.md @@ -34,12 +34,12 @@ If you want to try tags in the explorer, you’ll first need to add some to your If you’re using NodeJS, update serverless with npm update -g serverless -Add this code to your Serverless.yml file: +Add this code to your handler function: ```javascript module.exports.hello = async event, context => { context.serverlessSdk.tagEvent('customerId', 5, { newCustomer: true, isDemo: true, demoExpire: '2019-12-01' }) - tagEvent('200 OK') + context.serverlessSdk.tagEvent('200 OK') return { statusCode: 200, body: JSON.stringify(