fix
This commit is contained in:
parent
c692d74442
commit
886e765d4b
|
@ -191,7 +191,7 @@ func (w *wsConnectItem) assembleRenderData(taskId string, info websocket_data.Re
|
||||||
element, err := w.logic.svcCtx.AllModels.FsProductTemplateElement.FindOneByModelId(w.logic.ctx, *productTemplate.ModelId)
|
element, err := w.logic.svcCtx.AllModels.FsProductTemplateElement.FindOneByModelId(w.logic.ctx, *productTemplate.ModelId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
logx.Error("element info is not found,model_id = ?", *productTemplate.ModelId)
|
logx.Error("element info is not found,model_id = ", *productTemplate.ModelId)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
logx.Error("failed to get element list,", err)
|
logx.Error("failed to get element list,", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user