Skip to content
Permalink
Browse files

[COLAB-2954] Fix naming of ids in dao

  • Loading branch information...
jobachhu committed Dec 13, 2018
1 parent 2c568d4 commit 0b83a58290aa4d344a2e0eb2f824d4598b5eb2c9
@@ -119,7 +119,7 @@ private void addJoins(SelectQuery<Record> query, boolean addContest, boolean add
}

if (addContest) {
query.addJoin(CONTEST, CONTEST.ID.eq(CONTEST_PHASE.ID));
query.addJoin(CONTEST, CONTEST.ID.eq(CONTEST_PHASE.CONTEST_ID));
}
}

@@ -180,7 +180,7 @@ private void addFindByGivenConditions(Long contestId, Boolean visible, Long cont
}

if (contestId != null) {
query.addConditions(CONTEST_PHASE.ID.eq(contestId));
query.addConditions(CONTEST_PHASE.CONTEST_ID.eq(contestId));
}
}

@@ -109,7 +109,7 @@ public boolean update(Proposal2Phase proposal2Phase) {
query.addConditions(PROPOSAL2_PHASE.PROPOSAL_ID.eq(proposalId));


query.addConditions(CONTEST_PHASE.ID.eq(contestId));
query.addConditions(CONTEST_PHASE.CONTEST_ID.eq(contestId));

Result<Record> records = query.fetch();
if (records != null && !records.isEmpty()) {

0 comments on commit 0b83a58

Please sign in to comment.
You can’t perform that action at this time.