Skip to content

Commit

Permalink
fix: return unapporved papers in similar paper apis
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Harlalka <[email protected]>
  • Loading branch information
rajivharlalka committed Oct 8, 2024
1 parent 2077726 commit 207501d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/db/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (db *txn) MarkPaperAsSoftDeletedAndUnApprove(qpID int, approvedBy string) e
}

func (db *txn) GetQuestionPaperWithExactMatch(paper *models.QuestionPaper) ([]models.QuestionPaper, error) {
query := "SELECT course_code,course_name,year,exam,filelink,id,from_library,semester from iqps where is_deleted=false and approve_status=true and course_code = @course_code"
query := "SELECT course_code,course_name,year,exam,filelink,id,from_library,semester from iqps where is_deleted=false and course_code = @course_code"
params := pgx.NamedArgs{
"course_code": paper.CourseCode,
}
Expand Down

0 comments on commit 207501d

Please sign in to comment.