@routr/pgdata 2.1.5 → 2.1.7
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/dist/api/find.js +8 -1
- package/package.json +6 -6
package/dist/api/find.js
CHANGED
|
@@ -61,7 +61,14 @@ function findBy(operation, kind) {
|
|
|
61
61
|
try {
|
|
62
62
|
const request = { [call.request.fieldName]: call.request.fieldValue };
|
|
63
63
|
const Manager = (0, utils_1.getManager)(kind);
|
|
64
|
-
// WARNING:
|
|
64
|
+
// WARNING: As of Prisma 4.15.0, we can't pass string equivalents of booleans due to its internals.
|
|
65
|
+
// Previously, this was feasible. This workaround is temporary until find a better solution.
|
|
66
|
+
if (call.request.fieldValue === "true") {
|
|
67
|
+
request[call.request.fieldName] = true;
|
|
68
|
+
}
|
|
69
|
+
else if (call.request.fieldValue === "false") {
|
|
70
|
+
request[call.request.fieldName] = false;
|
|
71
|
+
}
|
|
65
72
|
const items = (yield operation({
|
|
66
73
|
where: request,
|
|
67
74
|
include: Manager.includeFields()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/pgdata",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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,9 +30,9 @@
|
|
|
30
30
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
31
31
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
32
32
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
33
|
-
"@prisma/client": "^4.
|
|
34
|
-
"@routr/common": "^2.1.
|
|
35
|
-
"@routr/processor": "^2.1.
|
|
33
|
+
"@prisma/client": "^4.16.2",
|
|
34
|
+
"@routr/common": "^2.1.7",
|
|
35
|
+
"@routr/processor": "^2.1.7",
|
|
36
36
|
"google-protobuf": "^3.9.2",
|
|
37
37
|
"grpc-interceptors": "github:fonoster/node-grpc-interceptors",
|
|
38
38
|
"pb-util": "^1.0.3",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/google-protobuf": "^3.15.6",
|
|
57
57
|
"@types/validator": "^13.7.10",
|
|
58
|
-
"prisma": "^4.
|
|
58
|
+
"prisma": "^4.16.2"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d9c077986f631b93b28c13df87ad3f45bdd68499"
|
|
61
61
|
}
|