Skip to content

Commit

Permalink
style(seeds): correct formating
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Jun 23, 2022
1 parent c2db882 commit 4153c12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SeedsRunner/index.ts
Expand Up @@ -60,7 +60,10 @@ export class SeedsRunner {
/**
* Ignore when when the node environement is not the same as the seeder configuration.
*/
if (Source.developmentOnly && !this.app.inDev || Source.environment && !Source.environment.includes(this.app.nodeEnvironment)) {
if (
(Source.developmentOnly && !this.app.inDev) ||
(Source.environment && !Source.environment.includes(this.app.nodeEnvironment))
) {
seeder.status = 'ignored'
return seeder
}
Expand Down

0 comments on commit 4153c12

Please sign in to comment.