Skip to content

Commit

Permalink
fix: 修复createNotification的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lansongxx committed Jan 28, 2024
1 parent 6d73c22 commit c15b68b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/mq/createNotifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (l *CreateNotificationsMq) consume(ch chan []*message.CreateNotificationsMe

notifications := lo.Map[*message.CreateNotificationsMessage, *system.Notification](msg, func(m *message.CreateNotificationsMessage, _ int) *system.Notification {
notification := &system.Notification{}
_ = copier.Copy(&m.Notification, notification)
_ = copier.Copy(notification, m.Notification)
return notification
})
if _, err := l.svcCtx.CloudMindSystemRPC.CreateNotifications(l.ctx, &system.CreateNotificationsReq{
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/CloudStriver/go-pkg v0.0.0-20240117111745-b4ba57a38f44
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240127152507-ef2faaa085cd
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240128070544-5cb72c4c8edd
github.com/bytedance/sonic v1.10.2
github.com/jinzhu/copier v0.4.0
github.com/samber/lo v1.39.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ github.com/ClickHouse/clickhouse-go v1.5.4/go.mod h1:EaI/sW7Azgz9UATzd5ZdZHRUhHg
github.com/ClickHouse/clickhouse-go/v2 v2.0.14/go.mod h1:iq2DUGgpA4BBki2CVwrF8x43zqBjdgHtbexkFkh5a6M=
github.com/CloudStriver/go-pkg v0.0.0-20240117111745-b4ba57a38f44 h1:7exnHSz2LCeghuVDVD8IS+JaPB/bxDJWFEL7xH5L2Tg=
github.com/CloudStriver/go-pkg v0.0.0-20240117111745-b4ba57a38f44/go.mod h1:SsAxWs5EIcaDE/0e5buoFOWsM4lTvFZhySkV68+RT3g=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240127152507-ef2faaa085cd h1:sC6f5hFtiUN51BCIbkfgteLn9UjRpWnjgl77fo7MzFw=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240127152507-ef2faaa085cd/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240128070544-5cb72c4c8edd h1:LbcJw2+KiqJ0ksPfSWC/ia/SZTEl1qDwanJLeOY9X8s=
github.com/CloudStriver/service-idl-gen-go v0.0.0-20240128070544-5cb72c4c8edd/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI=
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
Expand Down

0 comments on commit c15b68b

Please sign in to comment.