Skip to content

Commit

Permalink
fix missing context bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehille committed Jun 1, 2020
1 parent 521a623 commit 889b7a8
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 889b7a8

Please sign in to comment.