Fixed docker deploments, moved files to _folders in dispatch app
This commit is contained in:
13
apps/dispatch/app/_querys/report.ts
Normal file
13
apps/dispatch/app/_querys/report.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Prisma, Report } from "@repo/db";
|
||||
import { serverApi } from "_helpers/axios";
|
||||
|
||||
export const sendReportAPI = async (
|
||||
report:
|
||||
| (Prisma.Without<Prisma.ReportCreateInput, Prisma.ReportUncheckedCreateInput> &
|
||||
Prisma.ReportUncheckedCreateInput)
|
||||
| (Prisma.Without<Prisma.ReportUncheckedCreateInput, Prisma.ReportCreateInput> &
|
||||
Prisma.ReportCreateInput),
|
||||
) => {
|
||||
const repsonse = await serverApi.put("/report", report);
|
||||
return repsonse.data as Report;
|
||||
};
|
||||
Reference in New Issue
Block a user