fix
This commit is contained in:
parent
efee15eb97
commit
af2464e2a0
2 changed files with 5 additions and 6 deletions
|
|
@ -3100,7 +3100,6 @@ export class OrganizationController extends Controller {
|
||||||
};
|
};
|
||||||
|
|
||||||
const orgRevision = await this.orgRevisionRepository.findOne({ where: { id } });
|
const orgRevision = await this.orgRevisionRepository.findOne({ where: { id } });
|
||||||
console.log('orgRevision:',orgRevision);
|
|
||||||
|
|
||||||
if (!orgRevision) {
|
if (!orgRevision) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
||||||
|
|
|
||||||
|
|
@ -1341,7 +1341,7 @@ export class ReportController extends Controller {
|
||||||
// if (!orgRevision) {
|
// if (!orgRevision) {
|
||||||
// throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
// throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
||||||
// }
|
// }
|
||||||
(async () => {
|
// (async () => {
|
||||||
const orgRootData = await this.orgRootRepository.find({
|
const orgRootData = await this.orgRootRepository.find({
|
||||||
where: {
|
where: {
|
||||||
id: rootId,
|
id: rootId,
|
||||||
|
|
@ -3533,11 +3533,11 @@ export class ReportController extends Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const metaData = { template: "report2", reportName: "report2", data: { data } };
|
// const metaData = { template: "report2", reportName: "report2", data: { data } };
|
||||||
sendWebSocket(metaData);
|
// sendWebSocket(metaData);
|
||||||
})();
|
// })();
|
||||||
|
|
||||||
// return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } });
|
return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue