diff --git a/components/CVReplySystem.vue b/components/CVReplySystem.vue index 891b7112..8147075a 100644 --- a/components/CVReplySystem.vue +++ b/components/CVReplySystem.vue @@ -18,7 +18,6 @@ const replyData = ref>({ reply:"", pageCuid: props.pageCuid, familyCuid: props.familyCuid, - date: undefined }) const clearSuccessMessage = () => { @@ -29,7 +28,6 @@ const clearSuccessMessage = () => { const successMessage = ref(""); const submitComment = async () => { - replyData.value.date = new Date() const response = await $fetch('/api/replies', { // look at nuxt documentation for $fetch method: 'POST', body: { @@ -68,4 +66,4 @@ const submitComment = async () => { - \ No newline at end of file + diff --git a/prisma/migrations/20240729192419_reply_date/migration.sql b/prisma/migrations/20240729192419_reply_date/migration.sql deleted file mode 100644 index cd906540..00000000 --- a/prisma/migrations/20240729192419_reply_date/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ -/* - Warnings: - - - Added the required column `date` to the `Reply` table without a default value. This is not possible if the table is not empty. - -*/ --- AlterTable -ALTER TABLE "Reply" ADD COLUMN "date" TIMESTAMP(3) NOT NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 46fe45f1..f332c9fb 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -123,7 +123,6 @@ model Reply { name String? @default("") Page Page @relation(fields: [pageCuid], references: cuid) suspended Boolean @default(false) - date DateTime } model Image { diff --git a/types.d.ts b/types.d.ts index 5c6ac6b1..92c69ac3 100644 --- a/types.d.ts +++ b/types.d.ts @@ -156,5 +156,4 @@ export type Reply = { name: string reply: string suspended: boolean - date: Date }