schema update
This commit is contained in:
parent
922c6b7df3
commit
9b38c6a5e9
29 changed files with 184 additions and 43 deletions
|
@ -24,7 +24,7 @@ export async function getAllRepairsByStatus(req: Request, res: Response): Promis
|
|||
let count = parseInt((req.query.count as string) ?? "25");
|
||||
let noLimit = req.query.noLimit === "true";
|
||||
|
||||
let [repairs, total] = await RepairService.getAll(done, { offset, count, noLimit });
|
||||
let [repairs, total] = await RepairService.getAllByDone(done, { offset, count, noLimit });
|
||||
|
||||
res.json({
|
||||
repairs: RepairFactory.mapToBase(repairs),
|
||||
|
@ -161,6 +161,11 @@ export async function updateRepairStatusById(req: Request, res: Response): Promi
|
|||
id: repairId,
|
||||
status,
|
||||
done,
|
||||
user: {
|
||||
id: req.userId,
|
||||
firstname: req.firstname,
|
||||
lastname: req.lastname,
|
||||
},
|
||||
};
|
||||
await RepairCommandHandler.updateStatus(updateRepair);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue