Skip to content

Commit ffcd2d0

Browse files
committed
change timezone type to String
1 parent e5fd73e commit ffcd2d0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

models/tornado.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ const TornadoSchema = new mongoose.Schema({
99
month: { type: Number, index: true, min: 1, max: 12 },
1010
day: { type: Number, min: 1, max: 31 },
1111
date: { type: Date },
12-
time: { type: Date },
12+
time: { type: String },
1313
timezone: {
14-
type: mongoose.Schema.Types.Mixed,
15-
validate: (val) => ["?", 9, 3].includes(val),
14+
type: String,
15+
// type: mongoose.Schema.Types.Mixed,
16+
// validate: (val) => ["?", "9", "3"].includes(val),
1617
},
1718
stateAbbreviation: {
1819
type: String,

0 commit comments

Comments
 (0)