Skip to content

Commit 6258e6d

Browse files
committed
pointer handling
1 parent f4835b2 commit 6258e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chartRepo/repository/ChartsRepository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (repositoryImpl ChartRepositoryImpl) Save(tx *pg.Tx, chart *Chart) error {
221221
if tx == nil {
222222
connection = repositoryImpl.dbConnection
223223
}
224-
_, err := connection.Model(&chart).Insert()
224+
_, err := connection.Model(chart).Insert()
225225
return err
226226

227227
}

0 commit comments

Comments
 (0)