Skip to content

Commit

Permalink
Merge pull request #772 from LINCnil/fix_duplicate_answers_and_measures
Browse files Browse the repository at this point in the history
fix: duplicate feature on answers and measures
  • Loading branch information
kevin-atnos authored Nov 28, 2024
2 parents 1229a0f + 21111b7 commit 4b3da68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/services/answer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class AnswerService extends ApplicationDb {

async findAllByPia(pia_id: number): Promise<any> {
return new Promise((resolve, reject) => {
this.pia_id = pia_id;
super
.findAll(null, { index: 'index2', value: pia_id })
.then((result: any) => {
Expand Down
1 change: 1 addition & 0 deletions src/app/services/measures.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class MeasureService extends ApplicationDb {

async findAllByPia(pia_id: number): Promise<any> {
return new Promise((resolve, reject) => {
this.pia_id = pia_id;
super
.findAll(null, { index: 'index1', value: pia_id })
.then((result: any) => {
Expand Down

0 comments on commit 4b3da68

Please sign in to comment.