Check if sqlite filename was provided before making plugin-specific filename

Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
Joe Porpeglia
2021-12-06 12:18:50 -05:00
parent e081edc783
commit cf192e1a72
@@ -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`);
}