Skip to content

Commit 44facd9

Browse files
committed
Convert into lowercase
1 parent c466143 commit 44facd9

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-
Name: { type: String, required: true },
5-
Type: { type: String, required: true },
6-
Wing: { 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(Name, Type, Wing, floor, capacity) {
18+
async function create(name, type, wing, floor, capacity) {
1919
const infrastructure = new Infrastructure({
20-
Name,
21-
Type,
22-
Wing,
20+
name,
21+
type,
22+
wing,
2323
floor,
2424
capacity,
2525
});

0 commit comments

Comments
 (0)