Skip to content

Commit aa16ecd

Browse files
committed
Ci fix
1 parent ea6c655 commit aa16ecd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services/staff-service/src/modules/pharmacy/pharmacy.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { pharmacyService } from './pharmacy.service';
44
export class PharmacyController {
55
async createPrescription(req: Request, res: Response) {
66
try {
7-
const doctorId = req.headers['x-user-id'] as string;
7+
const doctorId = String(req.headers['x-user-id']);
88
const { patientId, patientName, items } = req.body;
99
const result = await pharmacyService.createPrescription({
1010
patientId,
@@ -29,8 +29,8 @@ export class PharmacyController {
2929

3030
async dispense(req: Request, res: Response) {
3131
try {
32-
const staffId = req.headers['x-user-id'] as string;
33-
const { id } = req.params;
32+
const staffId = String(req.headers['x-user-id']);
33+
const id = String(req.params.id);
3434
const result = await pharmacyService.dispense(id, staffId);
3535
res.json(result);
3636
} catch (e: any) {

0 commit comments

Comments
 (0)