Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
prakash100198 committed May 16, 2024
1 parent 676d1d4 commit 973c05d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/sql/repository/app/AppRepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (r *App) IsAppJobOrExternalType() bool {

type AppRepository interface {
SaveWithTxn(pipelineGroup *App, tx *pg.Tx) error
SaveInBulkWithTxn(apps []*App, tx *pg.Tx) error
Update(app *App) error
UpdateWithTxn(app *App, tx *pg.Tx) error
SetDescription(id int, description string, userId int32) error
Expand Down Expand Up @@ -480,8 +479,3 @@ func (repo AppRepositoryImpl) UpdateAppOfferingModeForAppIds(successAppIds []*in
_, err := repo.dbConnection.Query(app, query, appOfferingMode, userId, time.Now(), pg.In(successAppIds))
return err
}

func (repo AppRepositoryImpl) SaveInBulkWithTxn(apps []*App, tx *pg.Tx) error {
err := tx.Insert(&apps)
return err
}

0 comments on commit 973c05d

Please sign in to comment.