This commit is contained in:
laodaming 2023-08-16 17:06:52 +08:00
parent c692d74442
commit 886e765d4b

View File

@ -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)