Skip to content

Commit 4300db4

Browse files
fix submit at type
1 parent af0778f commit 4300db4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

backend/typescript/migrations/2025.06.21T07.02.40.create-applicants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const up: Migration = async ({ context: sequelize }) => {
8787
allowNull: false,
8888
},
8989
submittedAt: {
90-
type: DataType.STRING,
90+
type: DataType.DATE,
9191
allowNull: false,
9292
},
9393
createdAt: {

backend/typescript/models/applicant.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ export default class Applicant extends Model {
5151
@Column({ type: DataType.STRING })
5252
term!: string;
5353

54-
@Column({ type: DataType.STRING })
55-
submittedAt!: string;
54+
@Column({ type: DataType.DATE })
55+
submittedAt!: Date;
5656
}

backend/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export type ApplicantDTO = {
9292
timesApplied: string;
9393
shortAnswerQuestions: string[];
9494
term: string;
95-
submittedAt: string;
95+
submittedAt: Date;
9696
};
9797

9898
export type ApplicantRecordDTO = {

0 commit comments

Comments
 (0)