mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
refactor(db-config): Use typeorm-style options
TypeORM does not use a separate config option for the path to the SQLite file. Additionally, the "dialect" is called "type." This commit adjusts our config to follow the upstream convention to reduce confusion. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
40c23acd49
commit
cd5256da7f
6 changed files with 34 additions and 43 deletions
|
@ -33,8 +33,8 @@ describe('App', () => {
|
|||
})
|
||||
.overrideProvider(getConfigToken('databaseConfig'))
|
||||
.useValue({
|
||||
storage: ':memory:',
|
||||
dialect: 'sqlite',
|
||||
database: ':memory:',
|
||||
type: 'sqlite',
|
||||
})
|
||||
.overrideProvider(getConfigToken('authConfig'))
|
||||
.useValue({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue