Commit b6bfce96 authored by 李尚科's avatar 李尚科

house analysis fix

parent bb0e077f
...@@ -34,6 +34,9 @@ class HouseAnalysisService extends Service { ...@@ -34,6 +34,9 @@ class HouseAnalysisService extends Service {
const { ctx } = this; const { ctx } = this;
const house_analysis = await ctx.realestateModel.HouseAnalysis.one({ where: { id: house_analysis_id } }); const house_analysis = await ctx.realestateModel.HouseAnalysis.one({ where: { id: house_analysis_id } });
if (!house_analysis || house_analysis.id) {
ctx.failed('not found');
}
return { return {
id: house_analysis.id, id: house_analysis.id,
image: house_analysis.image, image: house_analysis.image,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment