Compare commits

..

No commits in common. "dev" and "v1.0.2" have entirely different histories.
dev ... v1.0.2

View file

@ -1248,8 +1248,8 @@ export class ReportController extends Controller {
{ probation_status: 9 }, { probation_status: 9 },
); );
// 2) return data ห่อใน result ให้ org ทำงานต่อ // 2) return data ให้ org ทำงานต่อ
const result = body.refIds.map((v) => ({ return body.refIds.map((v) => ({
profileId: v.refId, profileId: v.refId,
commandId: v.commandId, commandId: v.commandId,
amount: v.amount, amount: v.amount,
@ -1264,7 +1264,6 @@ export class ReportController extends Controller {
commandName: v.commandName, commandName: v.commandName,
remark: v.remark, remark: v.remark,
})); }));
return { result };
} catch (error: any) { } catch (error: any) {
if (error instanceof HttpError) { if (error instanceof HttpError) {
throw error; throw error;
@ -1396,7 +1395,7 @@ export class ReportController extends Controller {
); );
// 2) return data ให้ org ทำงานต่อ // 2) return data ให้ org ทำงานต่อ
const result = body.refIds.map((v) => ({ return body.refIds.map((v) => ({
profileId: v.refId, profileId: v.refId,
commandId: v.commandId, commandId: v.commandId,
amount: v.amount, amount: v.amount,
@ -1412,7 +1411,6 @@ export class ReportController extends Controller {
commandName: v.commandName, commandName: v.commandName,
remark: v.remark, remark: v.remark,
})); }));
return { result };
} catch (error: any) { } catch (error: any) {
if (error instanceof HttpError) { if (error instanceof HttpError) {
throw error; throw error;