electrodb 2.4.0 → 2.4.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/schema.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/schema.js CHANGED
@@ -1489,7 +1489,8 @@ function CustomAttributeType(base) {
1489
1489
  }
1490
1490
 
1491
1491
  function createSchema(schema) {
1492
- return v.model(schema);
1492
+ v.model(schema);
1493
+ return schema;
1493
1494
  }
1494
1495
 
1495
1496
  module.exports = {