Feat: word card repo
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user