Fixed registerAdapter error
This commit is contained in:
parent
fa986fcdc9
commit
35af57732e
@ -23,7 +23,7 @@ export default {
|
|||||||
registerAdapter: function(adapter) {
|
registerAdapter: function(adapter) {
|
||||||
const wrapped = wrapAdapter(adapter);
|
const wrapped = wrapAdapter(adapter);
|
||||||
|
|
||||||
if (getAdapter(wrapped.name)) {
|
if (getAdapter(wrapped.name, true)) {
|
||||||
throw new PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` +
|
throw new PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` +
|
||||||
`Already exists`);
|
`Already exists`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user