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

Commit 3380164

Browse files
committed
fix for #5
1 parent 1cddb13 commit 3380164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/skill/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ async function get (id, params, query = {}, fromDb = false) {
150150
const trueParams = _.assign(params, query)
151151
if (!fromDb) {
152152
const esResult = await serviceHelper.getRecordInEs(resource, id, trueParams)
153-
await populateTaxonomyNames(esResult)
154153
if (esResult) {
154+
await populateTaxonomyNames(esResult)
155155
return helper.omitAuditFields(esResult)
156156
}
157157
}

0 commit comments

Comments
 (0)