Skip to content

Commit

Permalink
Fix dates to be in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed May 15, 2024
1 parent be0769e commit e54c834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mocks/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { type Note, type PrismaClient } from '@prisma/client'

export const createNotes: () => Note[] = () => {
// Fixed dates for consistent screenshots
const date = new Date('2024-04-18T12:24:02Z')
const otherDate = new Date('2024-04-19T15:22:04Z')
const date = new Date('2024-04-12T12:24:02Z')
const otherDate = new Date('2024-04-13T12:24:02Z')
return [
{
id: 1,
Expand All @@ -21,7 +21,7 @@ export const createNotes: () => Note[] = () => {
createdAt: otherDate,
updatedAt: otherDate,
},
]
] as const
}

export const seed = async (db: PrismaClient) => {
Expand Down

0 comments on commit e54c834

Please sign in to comment.