Skip to content

Commit

Permalink
fix: use kebab-case for category deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Dec 13, 2024
1 parent c5a3418 commit f70e551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/db/categories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use sqlx::{PgConnection, Postgres, QueryBuilder};
strum::FromRepr,
)]
#[repr(i32)]
#[strum(serialize_all = "kebab-case")]
pub enum Category {
ArtAndDesign = 0,
BookAndReference = 1,
Expand Down

0 comments on commit f70e551

Please sign in to comment.