Check if sqlite filename was provided before making plugin-specific filename
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
@@ -119,7 +119,7 @@ export class DatabaseManager {
|
||||
?.filename;
|
||||
|
||||
// if persisting to a file, create separate files per plugin to avoid db migration issues.
|
||||
if (sqliteFilename !== ':memory:') {
|
||||
if (sqliteFilename && sqliteFilename !== ':memory:') {
|
||||
return path.join(sqliteFilename, `${pluginId}.sqlite`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user