fix(shifts): added Promise to remove function of the shift controller
This commit is contained in:
parent
383a01639a
commit
a8d53ab0aa
|
|
@ -28,7 +28,7 @@ export class ShiftController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Delete(':shift_id')
|
@Delete(':shift_id')
|
||||||
remove(@Param('shift_id') shift_id: number ) {
|
remove(@Param('shift_id') shift_id: number ): Promise<Result<number, string>> {
|
||||||
return this.update_delete_service.deleteShift(shift_id);
|
return this.update_delete_service.deleteShift(shift_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user