Skip to content

Commit b9407ff

Browse files
committed
#56 updated Schema and export in attendance.js
1 parent 0e0e401 commit b9407ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

models/attendance.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import connector from "./databaseUtil";
2-
2+
import Infrastructure from "./infrastructure";
33
connector.set("debug", true);
44

55
const attendanceSchema = {
66
date: { type: Date, required: true },
77
time: { type: String, required: true },
8-
class: { type: connector.Schema.Types.ObjectId, ref: "Infrastructure" },
8+
class: Infrastructure,
99
};
1010

1111
const Attendance = connector.model("Attendance", attendanceSchema);
12+
13+
export default {
14+
Attendance,
15+
};

0 commit comments

Comments
 (0)