Fixed registerAdapter error

This commit is contained in:
Ben Ashton 2021-03-02 18:19:18 -08:00
parent fa986fcdc9
commit 35af57732e

View File

@ -23,7 +23,7 @@ export default {
registerAdapter: function(adapter) {
const wrapped = wrapAdapter(adapter);
if (getAdapter(wrapped.name)) {
if (getAdapter(wrapped.name, true)) {
throw new PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` +
`Already exists`);
}