add repotys filter and store type properly
This commit is contained in:
@ -4,7 +4,7 @@ import { toast } from 'react-toastify';
|
||||
import { useRouter } from "next/router";
|
||||
import Link from "next/link";
|
||||
import DayOfWeek from "../DayOfWeek";
|
||||
import { Location, UserRole } from "@prisma/client";
|
||||
import { ReportType } from "@prisma/client";
|
||||
const common = require('src/helpers/common');
|
||||
|
||||
import { useSession } from "next-auth/react"
|
||||
@ -72,7 +72,9 @@ export default function FeedbackForm({ publisherId, onDone }) {
|
||||
|
||||
const handleSubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
item.publisher = { connect: { id: pubId } };
|
||||
item.
|
||||
item.publisher = { connect: { id: pubId } };
|
||||
item.type = ReportType.Feedback;
|
||||
delete item.assignmentId;
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user