velocious 1.0.76 → 1.0.77

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
@@ -3,7 +3,7 @@
3
3
  "velocious": "bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.76",
6
+ "version": "1.0.77",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "VELOCIOUS_TEST_DIR=../ cd spec/dummy && npx velocious test",
@@ -976,7 +976,7 @@ class VelociousDatabaseRecord {
976
976
  const insertResult = await this._connection().query(sql)
977
977
  const primaryKey = this.constructor.primaryKey()
978
978
 
979
- if (insertResult && insertResult[0][primaryKey]) {
979
+ if (Array.isArray(insertResult) && insertResult[0] && insertResult[0][primaryKey]) {
980
980
  this._attributes = insertResult[0]
981
981
  this._changes = {}
982
982
  } else {