Skip to content

Commit

Permalink
Merge pull request #199 from UTDallasEPICS/Hotfix-reply-date-attempte…
Browse files Browse the repository at this point in the history
…d-revert

Delete prisma/migrations/20240729192419_reply_date directory
  • Loading branch information
OfekShaltiel-UTD authored Aug 7, 2024
2 parents 5eb2a99 + 91db127 commit 98860e3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions components/CVReplySystem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const replyData = ref<Partial<Reply>>({
reply:"",
pageCuid: props.pageCuid,
familyCuid: props.familyCuid,
date: undefined
})
const clearSuccessMessage = () => {
Expand All @@ -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: {
Expand Down Expand Up @@ -68,4 +66,4 @@ const submitComment = async () => {
</template>

<style scoped></style>


8 changes: 0 additions & 8 deletions prisma/migrations/20240729192419_reply_date/migration.sql

This file was deleted.

1 change: 0 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ model Reply {
name String? @default("")
Page Page @relation(fields: [pageCuid], references: cuid)
suspended Boolean @default(false)
date DateTime
}

model Image {
Expand Down
1 change: 0 additions & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,4 @@ export type Reply = {
name: string
reply: string
suspended: boolean
date: Date
}

0 comments on commit 98860e3

Please sign in to comment.