summaryrefslogtreecommitdiff
path: root/src/api/users.rs
diff options
context:
space:
mode:
authormrw1593 <botahamec@outlook.com>2023-05-13 13:53:34 -0400
committermrw1593 <botahamec@outlook.com>2023-05-29 10:45:57 -0400
commit65a541fd0b32adc68f3bbbab14145ebf563b7ae1 (patch)
tree6b73e41bdca24eb85b05dd1c0b5684a225c93dd5 /src/api/users.rs
parentfdbc7ed756ce455c956dd7a5885db6b6eabfd578 (diff)
Change user_id to id
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,
};