Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Sep 17, 2020
1 parent 3e5cbf5 commit dd822b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion services/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function Database() {

const connectionOptionsSequelize = { logging: false };

connectionOptionsSequelize.dialectOptions = hasDialectOptions ? options.dialectOptions : {};
connectionOptionsSequelize.dialectOptions = hasDialectOptions
? { ...options.dialectOptions }
: {};

// NOTICE: mysql2 does not accepts unwanted options anymore.
// See: https://github.com/sidorares/node-mysql2/pull/895
Expand Down
2 changes: 1 addition & 1 deletion templates/app/docker-compose.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
{{/if}}
- DATABASE_SSL={{ ssl }}
{{#if hasDialectOptions}}
- DATABASE_DIALECT_OPTIONS={{dialectOptions}},
- DATABASE_DIALECT_OPTIONS={{dialectOptions}}
{{/if}}
- FOREST_AUTH_SECRET={{ forestAuthSecret }}
- FOREST_ENV_SECRET={{ forestEnvSecret }}
Expand Down
2 changes: 1 addition & 1 deletion templates/app/env.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DATABASE_SCHEMA={{ dbSchema }}
{{/if}}
DATABASE_SSL={{ ssl }}
{{#if hasDialectOptions}}
DATABASE_DIALECT_OPTIONS={{dialectOptions}},
DATABASE_DIALECT_OPTIONS={{dialectOptions}}
{{/if}}

FOREST_AUTH_SECRET={{ forestAuthSecret }}
Expand Down

0 comments on commit dd822b4

Please sign in to comment.