Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 4d38e53

Browse files
committed
fix(cms): New linting errors fixing
1 parent d81a41d commit 4d38e53

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

cms/src/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@ export default {
1616
* This gives you an opportunity to set up your data model,
1717
* run jobs, or perform some special logic.
1818
*/
19-
async bootstrap ({ strapi }) {
19+
async bootstrap({ strapi }) {
2020
try {
2121
const count = await strapi.entityService.count("plugin::users-permissions.user");
22-
if (count === 0){
22+
if (count === 0) {
2323
createUserSeed(strapi, 10);
2424
console.log("SUCCESS: Created user on bootstrap");
25-
}
26-
else {
25+
} else {
2726
console.log("INFO: User have already been created on bootstrap");
2827
}
29-
}
30-
catch (err) {
28+
} catch (err) {
3129
console.log("ERROR: Could not create user on bootstrap");
3230
console.log(err.details);
3331
}
34-
}
32+
},
3533
};

0 commit comments

Comments
 (0)