Skip to content
Snippets Groups Projects

Fix driver

Merged Defendi Alberto requested to merge fix-driver into dev
3 files
+ 10
12
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
2
import axios from 'axios';
import { DriverShiftType } from 'types/DriverShiftType';
import { SendDriverShiftType } from 'types/DriverShiftType';
/**
* @async
@@ -7,5 +7,5 @@ import { DriverShiftType } from 'types/DriverShiftType';
* @param {DriverShiftType} values of the shift.
* @returns {Promise<void>} void.
*/
export const createShift = async (values: DriverShiftType): Promise<void> =>
export const createShift = async (values: SendDriverShiftType): Promise<void> =>
axios.post('/api/web/shifts/', values);
Loading