mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-28 22:38:58 +02:00
bundle pre-release
# Conflicts: # README.md
This commit is contained in:
4
dist/module-debug/db/postgres/index.js
vendored
4
dist/module-debug/db/postgres/index.js
vendored
@@ -51,7 +51,7 @@ let DB, TRX;
|
||||
*/
|
||||
|
||||
export default function PostgresDB(name, config = {}) {
|
||||
if (!(this instanceof PostgresDB)) {
|
||||
if (!this) {
|
||||
return new PostgresDB(name, config);
|
||||
}
|
||||
if ("object" == typeof name) {
|
||||
@@ -72,7 +72,7 @@ export default function PostgresDB(name, config = {}) {
|
||||
}
|
||||
|
||||
PostgresDB.prototype.mount = function (flexsearch) {
|
||||
if (flexsearch instanceof Document) {
|
||||
if (flexsearch.constructor === Document) {
|
||||
return flexsearch.mount(this);
|
||||
}
|
||||
flexsearch.db = this;
|
||||
|
Reference in New Issue
Block a user