@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.js CHANGED
@@ -1666,8 +1666,6 @@ class FAMISDb {
1666
1666
  let retVal;
1667
1667
  const columns = [
1668
1668
  "id",
1669
- "account",
1670
- "effective",
1671
1669
  "facility",
1672
1670
  "contact",
1673
1671
  "contactEmail",
@@ -1682,6 +1680,9 @@ class FAMISDb {
1682
1680
  ];
1683
1681
  try {
1684
1682
  retVal = await this.db("cores").returning(columns).insert(core);
1683
+ if (retVal && retVal.length) {
1684
+ retVal = retVal[0];
1685
+ }
1685
1686
  const systemPart = this.getSystemById(retVal.systemId);
1686
1687
  retVal.systemPart = systemPart;
1687
1688
  } catch (e) {