Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit bada435

Browse files
author
Sachin Maheshwari
committed
commenting...
1 parent c6acaaf commit bada435

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

index.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ let cachedTags
1919
module.exports.syncSkills = async (event, context, callback) => {
2020
let tagsResponse
2121
console.log('got events', JSON.stringify(event))
22-
if (!cachedTags) {
22+
/*if (!cachedTags) {
2323
tagsResponse = await tag.getTags()
2424
if (tagsResponse.statusCode != 200) {
2525
callback(null, util.immediateResponse(null, 503, "Tags service is down", null))
2626
return;
2727
}
2828
cachedTags = tagsResponse.data
29-
}
30-
if (cachedTags) {
29+
}*/
30+
31+
/*if (cachedTags) {
3132
for (let count = 0; count < event.Records.length; count++) {
3233
let record = event.Records[count]
3334
if (record.eventName === 'INSERT' || record.eventName === 'MODIFY' || record.eventName === 'REMOVE') {
@@ -44,9 +45,11 @@ module.exports.syncSkills = async (event, context, callback) => {
4445
}
4546
}
4647
callback(null, util.fetchResponse())
48+
4749
return;
4850
} else {
49-
callback(null, tagsResponse)
51+
callback(null, tagsResponse)
5052
return;
51-
}
53+
}*/
54+
callback(null, `Dummy response - Successfully processed`);
5255
}

0 commit comments

Comments
 (0)