Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
Signed-off-by: hanzhixiao <[email protected]>
  • Loading branch information
hanzhixiao committed Aug 21, 2023
1 parent bd2223c commit 7e19fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/db/model/admin/invitation_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (o *InvitationRegister) Take(ctx context.Context, code string) (*admin.Invi
}

func (o *InvitationRegister) Update(ctx context.Context, code string, data map[string]any) error {
return errs.Wrap(o.db.WithContext(ctx).Model(&admin.InvitationRegister{}).Where("code = ?", code).Updates(data).Error)
return errs.Wrap(o.db.WithContext(ctx).Model(&admin.InvitationRegister{}).Where("invitation_code = ?", code).Updates(data).Error)
}

func (o *InvitationRegister) Search(ctx context.Context, keyword string, state int32, userIDs []string, codes []string, page int32, size int32) (uint32, []*admin.InvitationRegister, error) {
Expand Down

0 comments on commit 7e19fdb

Please sign in to comment.