dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit baa57a927fa27ae1435ed334bf0bd4713b8cba6d
parent 46b5e07c4a108df4e1f8ffd1d8754c424afd5248
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 19 May 2023 21:26:34 -0700

fix typos

Diffstat:
Mpkg/database/tableUsers.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/database/tableUsers.go b/pkg/database/tableUsers.go @@ -284,8 +284,8 @@ func (u *User) UnHellBan(db *DkfDB) { // GetUserBySessionKey ... func (d *DkfDB) GetUserBySessionKey(user *User, sessionKey string) error { - return d.db.Joins("INNER JOIN sessions s ON s.token = ? AND s.expires_at > DATETIME('now') and s.deleted_at IS NULL AND s.user_id = users.id"). - Where("users.verified = 1", sessionKey). + return d.db.Joins("INNER JOIN sessions s ON s.token = ? AND s.expires_at > DATETIME('now') AND s.deleted_at IS NULL AND s.user_id = users.id", sessionKey). + Where("users.verified = 1"). First(user).Error }