chore: replace sqlstore.Store with db.DB (#57010)
* chore: replace sqlstore.SQLStore with db.DB * more post-sqlstore.SQLStore cleanup
This commit is contained in:
@@ -202,7 +202,7 @@ func (s QueryHistoryService) starQuery(ctx context.Context, user *user.SignedInU
|
||||
|
||||
_, err = session.Insert(&queryHistoryStar)
|
||||
if err != nil {
|
||||
if s.SQLStore.Dialect.IsUniqueConstraintViolation(err) {
|
||||
if s.SQLStore.GetDialect().IsUniqueConstraintViolation(err) {
|
||||
return ErrQueryAlreadyStarred
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user