Feat: word card repo

This commit is contained in:
Grail Finder
2025-07-03 15:00:06 +03:00
parent 66d7a633c8
commit 788c4efd9e
5 changed files with 137 additions and 12 deletions

View File

@ -53,10 +53,6 @@ func (p *RepoProvider) RoomCreate(ctx context.Context, r *models.Room) error {
func (p *RepoProvider) RoomDeleteByID(ctx context.Context, id string) error {
db := getDB(ctx, p.DB)
_, err := db.ExecContext(ctx, `DELETE FROM rooms WHERE id = ?`, id)
if err != nil {
return err
}
_, err = db.ExecContext(ctx, `DELETE FROM settings WHERE room_id = ?`, id)
return err
}