fix relational

This commit is contained in:
Brian Cao 2022-08-26 21:29:26 -07:00
parent 1ba7b76072
commit b29cece7ef
3 changed files with 26 additions and 6 deletions

View file

@ -13,7 +13,10 @@ export function getDatabase(database, databaseType, fallback) {
}
if (!type) {
return getDatabase(fallback);
if (fallback) {
return getDatabase(fallback);
}
return null;
}
return type;