Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@use-tusk/drift-schemas": "^0.1.22",
"@use-tusk/drift-schemas": "^0.1.24",
"ava": "^6.4.1",
"axios": "^1.6.0",
"eslint": "^8.57.1",
Expand Down
2 changes: 2 additions & 0 deletions src/core/ProtobufCommunicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
SendAlertRequest,
InstrumentationVersionMismatchAlert,
UnpatchedDependencyAlert,
Runtime,
} from "@use-tusk/drift-schemas/core/communication";
import { context, Context, SpanKind as OtSpanKind } from "@opentelemetry/api";
import { Value } from "@use-tusk/drift-schemas/google/protobuf/struct";
Expand Down Expand Up @@ -217,6 +218,7 @@ try {
serviceId,
sdkVersion: SDK_VERSION,
minCliVersion: MIN_CLI_VERSION,
runtime: Runtime.NODE,
});

const sdkMessage = SDKMessage.create({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,13 +781,13 @@ app.get("/test/savepoint", async (req: Request, res: Response) => {
let outerResult: any = null;
let innerResult: any = null;

const result = await pgClient.begin(async (sql) => {
const result = await pgClient.begin(async (sql: any) => {
// Outer transaction - insert a user
outerResult =
await sql`INSERT INTO users (name, email) VALUES ('Outer User', 'outer@test.com') RETURNING *`;

// Nested savepoint
await sql.savepoint(async (sql2) => {
await sql.savepoint(async (sql2: any) => {
// Inner savepoint - insert another user
innerResult =
await sql2`INSERT INTO users (name, email) VALUES ('Inner User', 'inner@test.com') RETURNING *`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,13 +781,13 @@ app.get("/test/savepoint", async (req: Request, res: Response) => {
let outerResult: any = null;
let innerResult: any = null;

const result = await pgClient.begin(async (sql) => {
const result = await pgClient.begin(async (sql: any) => {
// Outer transaction - insert a user
outerResult =
await sql`INSERT INTO users (name, email) VALUES ('Outer User', 'outer@test.com') RETURNING *`;

// Nested savepoint
await sql.savepoint(async (sql2) => {
await sql.savepoint(async (sql2: any) => {
// Inner savepoint - insert another user
innerResult =
await sql2`INSERT INTO users (name, email) VALUES ('Inner User', 'inner@test.com') RETURNING *`;
Expand Down