fix split "/"
This commit is contained in:
parent
1a5adfa6d3
commit
fba2938169
3 changed files with 5 additions and 5 deletions
|
|
@ -667,7 +667,7 @@ export class AssignController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลบุคคล");
|
||||
}
|
||||
|
||||
const splitOc = await profileData.organization.split("/");
|
||||
const splitOc = await profileData.organization.split(" ");
|
||||
const splitOcAmount = await splitOc.length;
|
||||
const profile = {
|
||||
...profileData,
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ export class EvaluateResultController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลบุคคล");
|
||||
}
|
||||
|
||||
const splitOc = await experimenteeData.organization.split("/");
|
||||
const splitOc = await experimenteeData.organization.split(" ");
|
||||
const splitOcAmount = await splitOc.length;
|
||||
const experimentee = await {
|
||||
...experimenteeData,
|
||||
|
|
|
|||
|
|
@ -552,7 +552,7 @@ export class ReportController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
}
|
||||
|
||||
const splitOc = await experimenteeData.organization.split("/");
|
||||
const splitOc = await experimenteeData.organization.split(" ");
|
||||
const splitOcAmount = await splitOc.length;
|
||||
const organization = await experimenteeData.organization.replace(/\//g, " ");
|
||||
|
||||
|
|
@ -789,7 +789,7 @@ export class ReportController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
}
|
||||
|
||||
const splitOc = await experimenteeData.organization.split("/");
|
||||
const splitOc = await experimenteeData.organization.split(" ");
|
||||
const splitOcAmount = await splitOc.length;
|
||||
const organization = await experimenteeData.organization.replace(/\//g, " ");
|
||||
|
||||
|
|
@ -1059,7 +1059,7 @@ export class ReportController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
}
|
||||
|
||||
const splitOc = await experimenteeData.organization.split("/");
|
||||
const splitOc = await experimenteeData.organization.split(" ");
|
||||
const splitOcAmount = await splitOc.length;
|
||||
const organization = await experimenteeData.organization.replace(/\//g, " ");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue