Skip to content

Commit b1708c3

Browse files
committed
Change the name of the attribute
1 parent 044cc1a commit b1708c3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

models/infra.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import connector from "#models/databaseUtil";
22

33
const infrastructureSchema = {
4-
infraName: { type: String, required: true },
5-
infraType: { type: String, required: true },
6-
infraWing: { type: String, required: true },
4+
Name: { type: String, required: true },
5+
Type: { type: String, required: true },
6+
Wing: { type: String, required: true },
77
floor: { type: Number, required: true },
88
capacity: { type: Number, required: true },
99
};
@@ -15,11 +15,11 @@ async function remove(filter) {
1515
return res;
1616
}
1717

18-
async function create(infraName, infraType, infraWing, floor, capacity) {
18+
async function create(Name, Type, Wing, floor, capacity) {
1919
const infrastructure = new Infrastructure({
20-
infraName,
21-
infraType,
22-
infraWing,
20+
Name,
21+
Type,
22+
Wing,
2323
floor,
2424
capacity,
2525
});

0 commit comments

Comments
 (0)