Skip to content

Commit

Permalink
Fix the issue #2: a bug in undergraduateDegreeObtainedBystudent of ca…
Browse files Browse the repository at this point in the history
…che server, remove let; Cache: make consistence for retrieving the subOrganization of the researchGroup
  • Loading branch information
chengsijin0817 committed Oct 18, 2020
1 parent 64fd05f commit 7fedcf7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cache/resolver/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const resolvers = {

// taking clauses
if(where){
let students = await repository.graduateStudent.memoizeGetGraduateStudentPlusAdvisor(parent.id)
students = await repository.graduateStudent.memoizeGetGraduateStudentPlusAdvisor(parent.id)
if(where.AND){
for(let i = 0; i< where.AND.length; i ++){
const {advisor, university, age} = where.AND[i] || {};
Expand Down Expand Up @@ -400,9 +400,8 @@ const resolvers = {

subOrgnizationOf(parent, args, context, info){
//return parent
return{
id: parent.subOrganizationOf
}
let result = context.repository.researchGroup.memoizeGetResearchGroupById(parent.subOrganizationOf);
return result;
}
},
GraduateStudent:{
Expand Down

0 comments on commit 7fedcf7

Please sign in to comment.