...
|
...
|
@@ -59,7 +59,7 @@ func (l *SystemEditAticleCommentLoveLogic) SystemEditAticleCommentLove(req *type |
|
|
}
|
|
|
err = transaction.UseTrans(l.ctx, conn.DB(), func(ctx context.Context, c transaction.Conn) error {
|
|
|
for _, val := range commetList {
|
|
|
_, err := l.svcCtx.ArticleCommentRepository.Update(ctx, c, val)
|
|
|
_, err := l.svcCtx.ArticleCommentRepository.UpdateWithVersion(ctx, c, val)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
...
|
...
|
|