@onivoro/server-typeorm-postgres 0.1.30 → 0.1.31

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.
@@ -37,10 +37,7 @@ class TypeOrmRepository {
37
37
  return await this.repo.softDelete(options);
38
38
  }
39
39
  async put(options, body) {
40
- // await this.repo.save(options, body); <= this doesn't do what i expected,
41
- // so just call patch instead
42
- // ... buuuuuuuut we should actually change this and adhere more closely to http verb semantics so that PUT is a wholesale replacment of everything but the primary key and PATCH is this current behavior
43
- await this.patch(options, body);
40
+ await this.repo.save(options, body);
44
41
  }
45
42
  async patch(options, body) {
46
43
  await this.repo.update(options, body);
@@ -37,10 +37,7 @@ class TypeOrmRepository {
37
37
  return await this.repo.softDelete(options);
38
38
  }
39
39
  async put(options, body) {
40
- // await this.repo.save(options, body); <= this doesn't do what i expected,
41
- // so just call patch instead
42
- // ... buuuuuuuut we should actually change this and adhere more closely to http verb semantics so that PUT is a wholesale replacment of everything but the primary key and PATCH is this current behavior
43
- await this.patch(options, body);
40
+ await this.repo.save(options, body);
44
41
  }
45
42
  async patch(options, body) {
46
43
  await this.repo.update(options, body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-typeorm-postgres",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/onivoro/server-typeorm-postgres.git"
6
6
  },