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

Commit 85305a4

Browse files
author
vikasrohit
authored
Using updated getV5SkillResource method
1 parent 55e975b commit 85305a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const helper = require('./src/common/helper')
1717
*/
1818
async function syncUserSkill(userId, tagId, score, taxonomyId, isDelete) {
1919
const name = await helper.getTagName(tagId)
20-
const skill = await helper.getUbahnResource('skills', { taxonomyId, name })
20+
const skill = await helper.getV5SkillResource('skills', { taxonomyId, name })
2121
const skillExist = await helper.checkUserSkillExist(userId, skill.id)
2222
if (isDelete && skillExist) {
2323
helper.deleteUserSkill(userId, skill.id)
@@ -35,7 +35,7 @@ async function syncUserSkill(userId, tagId, score, taxonomyId, isDelete) {
3535
module.exports.handle = async (event) => {
3636
try {
3737
console.log(`Received event: `, JSON.stringify(event))
38-
const taxonomy = await helper.getUbahnResource('taxonomies', { name: config.TAXONOMY_NAME })
38+
const taxonomy = await helper.getV5SkillResource('taxonomies', { name: config.TAXONOMY_NAME })
3939
for (const record of event.Records) {
4040
try {
4141
const handle = _.get(record, 'dynamodb.NewImage.userHandle.S')

0 commit comments

Comments
 (0)