mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Fix database path for Windows
This commit is contained in:
parent
c3231defb8
commit
21c9dee6f8
|
@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- The SQLite database path is now correctly generated on Windows
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Track lookups no longer fail silently (error is returned and logged)
|
- Track lookups no longer fail silently (error is returned and logged)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
export const createDatabasePath = (directory: string) => `${directory}/db.sqlite`;
|
import {join} from 'path';
|
||||||
|
|
||||||
|
export const createDatabasePath = (directory: string) => join(directory, 'db.sqlite');
|
||||||
|
|
||||||
const createDatabaseUrl = (directory: string) => `file:${createDatabasePath(directory)}`;
|
const createDatabaseUrl = (directory: string) => `file:${createDatabasePath(directory)}`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue