fix: 工单完成 fix #371 fix #370

This commit is contained in:
lyx 2024-03-14 16:35:59 +08:00
parent fe268d5f15
commit e347a0d17b

View File

@ -29,7 +29,6 @@ export class WaybillsController {
if (Number(margingTop)) {
settings['margingTop'] = Number(margingTop);
} else {
// 查询当前用户信息
const currentUser = await ctx.db.getRepository('users').findOne({ filter: { id: ctx.state.currentUser.id } });
settings['margingTop'] = Number(currentUser?.pdf_top_margin) || 0;
}