1
0
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:
Thomas Wilkerling
2025-03-17 01:13:32 +01:00
parent 2fb416a73f
commit 1cbd1b33fe
198 changed files with 42941 additions and 4314 deletions

View File

@@ -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;