Skip to content

Commit

Permalink
fix a bug (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
yingwang-us committed May 28, 2020
1 parent baad123 commit 79227e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/apollo/resolvers/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const commonResourceSearch = async ({ models, org_id, searchFilter, queryFields,
let resource = await models.Resource.findOne(searchFilter).lean();

if (queryFields['data'] && resource.data && isLink(resource.data) && s3IsDefined()) {
const yaml = getS3Data(resource.data, context.logger);
const yaml = getS3Data(resource.data, logger);
resource.data = yaml;
}

Expand Down

0 comments on commit 79227e9

Please sign in to comment.