Skip to content

Commit 7b0fc93

Browse files
committed
collections: fix for updating records.
1 parent 1e06b47 commit 7b0fc93

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,8 @@ $ npm test
13071307

13081308
# Changelog
13091309

1310+
* v0.2.1
1311+
* Fix for updating records
13101312
* [`v0.2.0`](https://github.com/fahad19/firenze/compare/v0.1.5...v0.2.0):
13111313
* Model classes are now optional, as configuration has moved to Collection level.
13121314
* Model classes cannot be created via Database instance any more
@@ -1334,6 +1336,7 @@ To publish a new release:
13341336
* Update `package.json` and `bower.json` with version number.
13351337
* Run:
13361338
* `npm run docs`
1339+
* `npm run test`
13371340
* `npm run dist`
13381341
* Commit the changes.
13391342
* Run `npm publish .`

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "firenze",
33
"main": "dist/firenze.full.min.js",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"homepage": "https://github.com/fahad19/firenze",
66
"authors": [
77
"Fahad Ibnay Heylaal"

dist/firenze.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13592,7 +13592,7 @@ this["firenze"] =
1359213592

1359313593
q = _this9.query({
1359413594
alias: false,
13595-
conditions: _defineProperty({}, model.primaryKey, model.getId())
13595+
conditions: _defineProperty({}, _this9.primaryKey, model.getId())
1359613596
});
1359713597
promise = _this9.getAdapter().update(q, obj);
1359813598
}

dist/firenze.full.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/firenze.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ this["firenze"] =
13401340

13411341
q = _this9.query({
13421342
alias: false,
1343-
conditions: _defineProperty({}, model.primaryKey, model.getId())
1343+
conditions: _defineProperty({}, _this9.primaryKey, model.getId())
13441344
});
13451345
promise = _this9.getAdapter().update(q, obj);
13461346
}

dist/firenze.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firenze",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "ORM for relational databases.",
55
"main": "index.js",
66
"scripts": {

src/Collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ export default class Collection {
977977
q = this.query({
978978
alias: false,
979979
conditions: {
980-
[model.primaryKey]: model.getId()
980+
[this.primaryKey]: model.getId()
981981
}
982982
});
983983
promise = this

0 commit comments

Comments
 (0)