dkforest

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

commit b354c9db5a7989f82401f454ef53746993cc1d5c
parent fecf6d883a08834972d79af9b47ce8fac9b9fd1b
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 28 Jan 2023 13:26:39 -0800

cleanup

Diffstat:
Mpkg/database/tableNotifications.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/database/tableNotifications.go b/pkg/database/tableNotifications.go @@ -54,7 +54,7 @@ func GetUserSessionNotifications(sessionToken string) (msgs []SessionNotificatio ids = append(ids, msg.ID) } now := time.Now() - if err := DB.Model(&SessionNotification{}).Where("id IN (?)", ids). + if err := DB.Table("session_notifications").Where("id IN (?)", ids). UpdateColumn("is_read", true, "read_at", &now).Error; err != nil { logrus.Error(err) }