Fix editing item class

This diesel attribute was set in an earlier (unrelated) commit for
NewItem, but not NewItemClass.
This commit is contained in:
Simon Bruder 2024-07-11 01:04:57 +02:00
parent c4a73204aa
commit 38e36482d0
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -70,6 +70,7 @@ pub struct ItemClass {
#[derive(Debug, Insertable, Deserialize, AsChangeset)]
#[diesel(table_name = item_classes)]
#[diesel(check_for_backend(diesel::pg::Pg))]
#[diesel(treat_none_as_null = true)]
pub struct NewItemClass {
pub name: String,
pub r#type: ItemClassType,