diff options
author | Jeff Becker <ampernand@gmail.com> | 2017-05-14 19:43:07 -0400 |
---|---|---|
committer | Jeff Becker <ampernand@gmail.com> | 2017-05-14 19:43:07 -0400 |
commit | 449cec15ac1e2bc73144133f6be1a7170b85c10d (patch) | |
tree | 3a518cddfd0efce3afe52af9cfa5f208edbdada9 /database/postgres/statements.go | |
parent | 431a0c3748c451c64a29b4d3220da2b986276689 (diff) | |
download | nyaa-449cec15ac1e2bc73144133f6be1a7170b85c10d.zip nyaa-449cec15ac1e2bc73144133f6be1a7170b85c10d.tar.gz nyaa-449cec15ac1e2bc73144133f6be1a7170b85c10d.tar.bz2 |
make it compile
Diffstat (limited to 'database/postgres/statements.go')
-rw-r--r-- | database/postgres/statements.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/database/postgres/statements.go b/database/postgres/statements.go index 92a64a8..58ee6ba 100644 --- a/database/postgres/statements.go +++ b/database/postgres/statements.go @@ -41,13 +41,13 @@ func scanCommentColumnsFull(rows *sql.Rows, c *model.Comment) { const torrentReportSelectColumnsFull = `torrent_report_id, type, torrent_id, user_id, created_at` func scanTorrentReportColumnsFull(rows *sql.Rows, r *model.TorrentReport) { - rows.Scan(&r.ID, &r.Type, &r.TorrentID, &r.UserID, &r.CreatedAt) + rows.Scan(&r.ID, &r.Description, &r.TorrentID, &r.UserID, &r.CreatedAt) } -const userSelectColumnsFull = `user_id, username, password, email, status, created_at, updated_at, last_login_at, last_login_ip, api_token, api_token_expires, language, md5` +const userSelectColumnsFull = `user_id, username, password, email, status, created_at, updated_at, api_token, api_token_expiry, language, md5` func scanUserColumnsFull(rows *sql.Rows, u *model.User) { - rows.Scan(&u.ID, &u.Username, &u.Password, &u.Email, &u.Status, &u.CreatedAt, &u.UpdatedAt, &u.LastLoginAt, &u.LastLoginIP, &u.Token, &u.TokenExpiration, &u.Language, &u.MD5) + rows.Scan(&u.ID, &u.Username, &u.Password, &u.Email, &u.Status, &u.CreatedAt, &u.UpdatedAt, &u.ApiToken, &u.ApiTokenExpiry, &u.Language, &u.MD5) } |