summaryrefslogtreecommitdiffstats
path: root/src/warning/models.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-17 20:58:40 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-17 20:58:40 +0000
commitbf6feab9cac0bbf54607ba3401a5116440abcf85 (patch)
treeb33e41d6b833a24afec17945a26cd2848e3578b8 /src/warning/models.rs
parentfc296356c4e1b269fd55196e72791ea3fbf03b08 (diff)
Fix: edit warning for resolved_by already defined as number
Diffstat (limited to 'src/warning/models.rs')
-rw-r--r--src/warning/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/warning/models.rs b/src/warning/models.rs
index 9e79e6c..421ff38 100644
--- a/src/warning/models.rs
+++ b/src/warning/models.rs
@@ -59,7 +59,7 @@ pub struct WarningCreate {
#[derive(Deserialize)]
pub struct WarningEdit {
pub admin_note: String,
- pub resolved_by: Option<bool>,
+ pub resolved_by: Option<i32>,
}
/// Payload used for warning filtering