@opengis/fastify-table 1.2.14 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export default async function getSelectMeta({ name, pg = pgClients.client, nocac
|
|
|
12
12
|
if (selectMeta[name] && !nocache) return selectMeta[name];
|
|
13
13
|
|
|
14
14
|
const cls = await getSelect(name, pg);
|
|
15
|
-
const db = typeof cls
|
|
15
|
+
const db = typeof cls?.db === 'string' ? { database: cls.db } : cls?.db;
|
|
16
16
|
const pg1 = cls?.db ? getPG(db) : pg;
|
|
17
17
|
if (!pg1?.pk) await pg1.init();
|
|
18
18
|
|