Skip to content

Commit 6a8b8e5

Browse files
Reformat code
1 parent 3dc7474 commit 6a8b8e5

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Use this section to tell people about which versions of your project are
66
currently being supported with security updates.
77

88
| Version | Supported |
9-
| ------- | ------------------ |
9+
|---------|--------------------|
1010
| 5.1.x | :white_check_mark: |
1111
| 5.0.x | :x: |
1212
| 4.0.x | :white_check_mark: |

init.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ if (!userExists) {
1111
db_admin.createUser({
1212
user: username,
1313
pwd: password,
14-
roles: [{ role: "root", db: "admin" }]
14+
roles: [{role: "root", db: "admin"}]
1515
});
1616
} else {
1717
print(`Usuario ${username} ya existe, actualizando contraseña...`);
18-
db_admin.updateUser(username, { pwd: password });
18+
db_admin.updateUser(username, {pwd: password});
1919
}
2020

2121
db = db.getSiblingDB(database);
@@ -57,24 +57,24 @@ db.cultivos.insertMany([
5757

5858
db.createCollection("actuadores")
5959
db.actuadores.insertMany([
60-
{
61-
"_id": ObjectId("6918e5919fb7e6b79f2a817b"),
62-
"crop": ObjectId("672ebd43e9227768a15b11df"),
63-
"type": "HUMIDIFIER",
64-
"_class": "app.smartpot.api.actuators.model.entity.Actuator"
65-
},
66-
{
67-
"_id": ObjectId("691c063677bd49e238fb35c7"),
68-
"crop": ObjectId("672ebd43e9227768a15b11df"),
69-
"type": "WATER_PUMP",
70-
"_class": "app.smartpot.api.actuators.model.entity.Actuator"
71-
},
72-
{
73-
"_id": ObjectId("691c064e77bd49e238fb35c8"),
74-
"crop": ObjectId("672ebd43e9227768a15b11df"),
75-
"type": "UV_LIGHT",
76-
"_class": "app.smartpot.api.actuators.model.entity.Actuator"
77-
}
60+
{
61+
"_id": ObjectId("6918e5919fb7e6b79f2a817b"),
62+
"crop": ObjectId("672ebd43e9227768a15b11df"),
63+
"type": "HUMIDIFIER",
64+
"_class": "app.smartpot.api.actuators.model.entity.Actuator"
65+
},
66+
{
67+
"_id": ObjectId("691c063677bd49e238fb35c7"),
68+
"crop": ObjectId("672ebd43e9227768a15b11df"),
69+
"type": "WATER_PUMP",
70+
"_class": "app.smartpot.api.actuators.model.entity.Actuator"
71+
},
72+
{
73+
"_id": ObjectId("691c064e77bd49e238fb35c8"),
74+
"crop": ObjectId("672ebd43e9227768a15b11df"),
75+
"type": "UV_LIGHT",
76+
"_class": "app.smartpot.api.actuators.model.entity.Actuator"
77+
}
7878
])
7979

8080
db.createCollection('comandos');

0 commit comments

Comments
 (0)