summaryrefslogtreecommitdiff
path: root/src/api/users.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/users.rs')
-rw-r--r--src/api/users.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/users.rs b/src/api/users.rs
index b2dd1c7..d62cc27 100644
--- a/src/api/users.rs
+++ b/src/api/users.rs
@@ -141,7 +141,7 @@ async fn create_user(
}
let user = User {
- user_id,
+ id: user_id,
username,
password,
};
@@ -193,7 +193,7 @@ async fn update_user(
}
let user = User {
- user_id,
+ id: user_id,
username,
password,
};