diff options
| author | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-19 00:16:46 +0100 |
|---|---|---|
| committer | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-19 00:16:46 +0100 |
| commit | 52242b03f1af7f73e73592c2e5ee2bc54813a64d (patch) | |
| tree | 1ecafcbebad7b6f8ae71670afbe2921c975196fa /backend/src/db/sessions.rs | |
| parent | 2dbb085008f68ed56675cf23ea6e1c89af632ea9 (diff) | |
| download | planetwars.dev-52242b03f1af7f73e73592c2e5ee2bc54813a64d.tar.xz planetwars.dev-52242b03f1af7f73e73592c2e5ee2bc54813a64d.zip | |
simple bot uploads
Diffstat (limited to 'backend/src/db/sessions.rs')
| -rw-r--r-- | backend/src/db/sessions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/db/sessions.rs b/backend/src/db/sessions.rs index 0cc3f1a..96f3926 100644 --- a/backend/src/db/sessions.rs +++ b/backend/src/db/sessions.rs @@ -22,7 +22,7 @@ pub struct Session { pub fn create_session(user: &User, conn: &PgConnection) -> Session { let new_session = NewSession { token: gen_session_token(), - user_id: user.user_id, + user_id: user.id, }; let session = insert_into(sessions::table) .values(&new_session) |
