add init db data, fix bugs, refactor

This commit is contained in:
lbenedar
2026-04-07 18:47:35 +03:00
parent 178404639d
commit e5deb5d76d
11 changed files with 190 additions and 56 deletions

View File

@@ -72,7 +72,7 @@ func (m FoundryStateModel) InsertUserHotbar(key string, value string, userId int
defer cancel()
_, err := m.DB.ExecContext(ctx, query, args...)
if err != nil {
if err != nil && err != sql.ErrNoRows {
return err
}
return nil