Chore: Remove final x from sqlstore (#48086)
* Chore: Remove final x from everywhere
* Fix errors
* Fix: fix lint and nil pointer err
* Remove x from the sqlstore 🎉
This commit is contained in:
@@ -42,7 +42,7 @@ func NewSQLAnnotationRepo(sql *SQLStore) SQLAnnotationRepo {
|
||||
}
|
||||
|
||||
func (r *SQLAnnotationRepo) Save(item *annotations.Item) error {
|
||||
return inTransaction(func(sess *DBSession) error {
|
||||
return r.sql.WithTransactionalDbSession(context.Background(), func(sess *DBSession) error {
|
||||
tags := models.ParseTagPairs(item.Tags)
|
||||
item.Tags = models.JoinTagPairs(tags)
|
||||
item.Created = timeNow().UnixNano() / int64(time.Millisecond)
|
||||
|
||||
Reference in New Issue
Block a user