去掉查询资产图片字段缺失
This commit is contained in:
parent
9ffc181822
commit
c84f853d92
@ -14,7 +14,7 @@ export default router.post(
|
||||
async (req, res) => {
|
||||
const { assetsId } = req.body;
|
||||
|
||||
const assets = await u.db("o_assets").where("id", assetsId).select("id", "imageId", "type", "state").first();
|
||||
const assets = await u.db("o_assets").where("id", assetsId).select("id", "imageId", "type").first();
|
||||
|
||||
const rawTempAssets = await u.db("o_image").where("assetsId", assetsId).select("id", "filePath", "assetsId", "type", "state");
|
||||
|
||||
@ -28,10 +28,10 @@ export default router.post(
|
||||
|
||||
const data = {
|
||||
id: assets!.id,
|
||||
state: assets!.state,
|
||||
imageId: assets!.imageId ?? null,
|
||||
tempAssets,
|
||||
};
|
||||
console.log("%c Line:30 🥤 data", "background:#465975", data);
|
||||
res.status(200).send(success(data));
|
||||
},
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user