@routr/pgdata 2.0.8-alpha.29 → 2.0.8-alpha.30

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.
@@ -32,7 +32,6 @@ exports.update = void 0;
32
32
  const pb_util_1 = require("pb-util");
33
33
  const common_1 = require("@routr/common");
34
34
  const utils_1 = require("../mappers/utils");
35
- const connect_1 = require("@routr/common/src/connect");
36
35
  const client_1 = require("@prisma/client");
37
36
  // TODO: The entire function should be wrapped in a transaction
38
37
  // TODO: We should reuse the prisma client
@@ -47,14 +46,14 @@ function update(operation, kind) {
47
46
  const Manager = (0, utils_1.getManager)(kind);
48
47
  const manager = new Manager(request);
49
48
  manager.validOrThrowUpdate();
50
- if (kind === connect_1.Kind.DOMAIN) {
49
+ if (kind === common_1.CommonConnect.Kind.DOMAIN) {
51
50
  yield prisma.egressPolicy.deleteMany({
52
51
  where: {
53
52
  domainRef: request.ref
54
53
  }
55
54
  });
56
55
  }
57
- if (kind === connect_1.Kind.TRUNK) {
56
+ if (kind === common_1.CommonConnect.Kind.TRUNK) {
58
57
  yield prisma.trunkURI.deleteMany({
59
58
  where: {
60
59
  trunkRef: request.ref
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/pgdata",
3
- "version": "2.0.8-alpha.29",
3
+ "version": "2.0.8-alpha.30",
4
4
  "description": "Postgres API Server for Routr Connect",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -30,8 +30,8 @@
30
30
  "@opentelemetry/sdk-trace-node": "^1.0.4",
31
31
  "@opentelemetry/semantic-conventions": "^1.0.4",
32
32
  "@prisma/client": "^4.8.0",
33
- "@routr/common": "^2.0.8-alpha.29",
34
- "@routr/processor": "^2.0.8-alpha.29",
33
+ "@routr/common": "^2.0.8-alpha.30",
34
+ "@routr/processor": "^2.0.8-alpha.30",
35
35
  "google-protobuf": "^3.9.2",
36
36
  "pb-util": "^1.0.3",
37
37
  "phone": "^3.1.32",
@@ -55,5 +55,5 @@
55
55
  "@types/validator": "^13.7.10",
56
56
  "prisma": "^4.8.0"
57
57
  },
58
- "gitHead": "f273cfb052bd734a906ab97011e1338ceac53111"
58
+ "gitHead": "6466c3e5262850c85dc6d15eec3e25f915a37667"
59
59
  }