@tamu-dor/famis-db 3.0.0 → 3.0.2
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/dist/main.cjs +3 -2
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +3 -2
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/dist/main.cjs
CHANGED
|
@@ -1668,8 +1668,6 @@ class FAMISDb {
|
|
|
1668
1668
|
let retVal;
|
|
1669
1669
|
const columns = [
|
|
1670
1670
|
"id",
|
|
1671
|
-
"account",
|
|
1672
|
-
"effective",
|
|
1673
1671
|
"facility",
|
|
1674
1672
|
"contact",
|
|
1675
1673
|
"contactEmail",
|
|
@@ -1684,6 +1682,9 @@ class FAMISDb {
|
|
|
1684
1682
|
];
|
|
1685
1683
|
try {
|
|
1686
1684
|
retVal = await this.db("cores").returning(columns).insert(core);
|
|
1685
|
+
if (retVal && retVal.length) {
|
|
1686
|
+
retVal = retVal[0];
|
|
1687
|
+
}
|
|
1687
1688
|
const systemPart = this.getSystemById(retVal.systemId);
|
|
1688
1689
|
retVal.systemPart = systemPart;
|
|
1689
1690
|
} catch (e) {
|