Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Commit 0e19a97

Browse files
committed
WIP
1 parent 350f5c6 commit 0e19a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/announcement/repository/already_read.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
func (r *impl) FindAlreadyRead(ctx context.Context, conds announcementport.FindAlreadyReadConds, lock sharedport.Lock) (*announcementdomain.AlreadyRead, error) {
1818
db := r.db.
1919
WithContext(ctx).
20-
Where("user_id = ?", conds.UserID.String()).
20+
Where("read_user = ?", conds.UserID.String()).
2121
Where("information_id = ?", conds.AnnouncementID.String())
2222

2323
if lock != sharedport.LockNone {
@@ -39,7 +39,7 @@ func (r *impl) ListAlreadyReads(ctx context.Context, conds announcementport.List
3939
db := r.db.WithContext(ctx)
4040

4141
if conds.UserID != nil {
42-
db = db.Where("user_id = ?", conds.UserID.String())
42+
db = db.Where("read_user = ?", conds.UserID.String())
4343
}
4444

4545
if conds.AnnouncementIDs != nil {

0 commit comments

Comments
 (0)