Skip to content

Commit

Permalink
[fix] 修复更新时错误的列名
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrie committed Jan 23, 2023
1 parent b40fd7e commit dcc2ee2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/app/spider/update_dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ func (u *UpdateDynamic) spider() error {
continue
}
updates := map[string]interface{}{
"view": dynamic.Card.Desc.View,
"repost": dynamic.Card.Desc.Repost,
"comment": dynamic.Card.Desc.Comment,
"like": dynamic.Card.Desc.Like,
"view_nums": dynamic.Card.Desc.View,
"repost": dynamic.Card.Desc.Repost,
"comment_nums": dynamic.Card.Desc.Comment,
"favor": dynamic.Card.Desc.Like,
}
if err := repo.Update(updates, v.DynamicID); err != nil {
u.logger.Error("Dynamic Update error", zap.Int("dynamic_id", int(v.DynamicID)), zap.Error(err))
Expand Down

0 comments on commit dcc2ee2

Please sign in to comment.