dxps / fullstack-rust-axum-dioxus-rwa

A RealWorld app implementation as a fullstack Rust project using Axum (back-end) and Dioxus (front-end).
MIT License
80 stars 6 forks source link

[be] `ArticlesRepo` - Fix delete article with tags #13

Closed dxps closed 1 year ago

dxps commented 1 year ago

The current implementation deletes only from articles table. If an article has tags, then it obviously fails with:

update or delete on table "articles" violates foreign key constraint "fk_article_id" on table "tags_articles"
dxps commented 1 year ago

Fixed meanwhile.