Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshatGupta15 committed Jul 5, 2024
1 parent f5ee49c commit cb42436
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions application/db.pvf.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ func fetchPvfForVerification(ctx *gin.Context, id uint, rid uint, jps *PVF) erro
return tx.Error
}

// func verifyPvf(ctx *gin.Context, pvf *PVF) (bool, error) {
// tx := db.WithContext(ctx).Model(&pvf).
// Clauses(clause.Returning{}).
// Where("id = ?", pvf.ID).
// Updates(map[string]interface{}{"is_verified": pvf.IsVerified})
// return tx.RowsAffected > 0, tx.Error
// }

func fetchAllPvfForAdmin(ctx *gin.Context, rid uint, jps *[]PVF) error {
tx := db.WithContext(ctx).
Where("recruitment_cycle_id = ?", rid).
Expand Down

0 comments on commit cb42436

Please sign in to comment.