diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-24 17:09:48 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-24 17:09:48 +0000 |
| commit | 4319bceb894e87be5586ae662c7d7d57b02305ba (patch) | |
| tree | b92396faf3992b79d89b308436dcece8f7775dfd | |
| parent | a17ec8ff642bbf0596030e773d9d6820d2d9fd88 (diff) | |
Fix return data
| -rw-r--r-- | src/models/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/user.rs b/src/models/user.rs index 56bc5da..d61795b 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -65,7 +65,7 @@ impl User { r#" INSERT INTO users (name, email, username, password) VALUES ( $1, $2, $3, $4) - RETURNING id, email, username, is_staff, avatar + RETURNING id, name, email, username, is_staff, avatar "#, ) .bind(user.name) |
