Skip to content
Snippets Groups Projects
Commit e30c6405 authored by Martin Korec's avatar Martin Korec
Browse files

fix: changed publishedAt to Int/number type

parent c7b06ae8
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ model Movie {
originalName String
intro String
picture String?
publishedAt DateTime
publishedAt Int
runTimeMinutes Int
director Director @relation(fields: [directorId], references: [id])
......
......@@ -3,7 +3,7 @@ export class CreateMovieDto {
readonly originalName: string;
readonly intro: string;
readonly picture?: string;
readonly publishedAt: Date;
readonly publishedAt: number;
readonly directorId: string;
readonly runTimeMinutes: number;
}
......@@ -9,7 +9,7 @@ export class MovieEntity implements Movie {
originalName: string;
intro: string;
picture: string;
publishedAt: Date;
publishedAt: number;
runTimeMinutes: number;
directorId: string;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment