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

Commit d81a41d

Browse files
committed
fix(cms): Fixing more linting issues
1 parent faed47e commit d81a41d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cms/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ export default {
1717
* run jobs, or perform some special logic.
1818
*/
1919
async bootstrap ({ strapi }) {
20-
try{
21-
const count = await strapi.entityService.count("plugin::users-permissions.user")
22-
if(count === 0){
20+
try {
21+
const count = await strapi.entityService.count("plugin::users-permissions.user");
22+
if (count === 0){
2323
createUserSeed(strapi, 10);
2424
console.log("SUCCESS: Created user on bootstrap");
2525
}
26-
else{
26+
else {
2727
console.log("INFO: User have already been created on bootstrap");
2828
}
2929
}
30-
catch(err){
31-
console.log("ERROR: Could not create user on bootstrap")
30+
catch (err) {
31+
console.log("ERROR: Could not create user on bootstrap");
3232
console.log(err.details);
3333
}
3434
}

cms/src/seed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export async function createUserSeed(strapi, amountOfUsers : number){
22
console.log("Function called")
33

4-
for(let i = 0; i < amountOfUsers; i++){
4+
for (let i = 0; i < amountOfUsers; i++) {
55
const user = {
66
username: `dummyUser${i}`,
77
email: `dummyUser${i}@example.com`,

0 commit comments

Comments
 (0)