Skip to content

Commit 90ec536

Browse files
Castellanos, Eduard Andres (Colombia)Castellanos, Eduard Andres (Colombia)
authored andcommitted
feat(prisma): Improved sample manual to ignore error with TypeScript
1 parent a05bfca commit 90ec536

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

sdk_contrib/prisma/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,21 @@ const run = async () => {
9191
id: 1,
9292
},
9393
},
94+
// @ts-ignore
95+
subSegment
96+
);
97+
const companies = await client.company.findMany(
98+
// @ts-ignore
9499
subSegment
95100
);
96-
const companies = await client.company.findMany(subSegment);
97101
console.log(companies);
98102
subSegment.close();
99103
// ...
100104
};
101105

102106
run();
103107
```
108+
109+
# Contributors
110+
111+
- Eduard Castellanos <eduard@castellanos.dev>, <eduard@cosva.app>

sdk_contrib/prisma/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "aws-xray-sdk-prisma",
3-
"version": "0.0.1",
3+
"version": "3.3.7",
44
"description": "AWS X-Ray Patcher for prisma (Javascript)",
55
"author": "Cosva",
66
"contributors": [
7-
"Eduard Castellanos <eduard@cosva.app>"
7+
"Eduard Castellanos <eduard@castellanos.dev>"
88
],
99
"main": "dist/index.js",
1010
"types": "dist/index.d.ts",

sdk_contrib/prisma/samples/manual/simple.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ const run = async () => {
2424
id: 1,
2525
},
2626
},
27+
// @ts-ignore
28+
subSegment
29+
);
30+
const companies = await client.company.findMany(
31+
// @ts-ignore
2732
subSegment
2833
);
29-
const companies = await client.company.findMany(subSegment);
3034
console.log(companies);
3135
subSegment.close();
3236
const timeout = segment.addNewSubsegment('timeout');

0 commit comments

Comments
 (0)