public
anord
read
Ledger
Why work hard when you can work easier?
Languages
Repository composition by tracked source files.
TypeScript
86%
CSS
10%
SQL
3%
Shell
1%
HTML
0%
Trace
apps/worker/src/index.ts
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
index.ts
on main
Author
Date
Commit
Line
Code
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 1
import "dotenv/config";
import "dotenv/config";
Alex Nord
3 months ago
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 2
import crypto from "node:crypto";
import crypto from "node:crypto";
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 3
import { Worker } from "bullmq";
import { Worker } from "bullmq";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 4
import Redis from "ioredis";
import Redis from "ioredis";
Alex Nord
3 months ago
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 5
import { Pool } from "pg";
import { Pool } from "pg";
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 6
Alex Nord
3 months ago
462c463
Add first-run setup and gate demo seed behind config
- Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 7
const connection = new Redis(process.env.REDIS_URL ?? "redis://localhost:6379", {
const connection = new Redis(process.env.REDIS_URL ?? "redis://localhost:6379", {
same change
462c463
Add first-run setup and gate demo seed behind config
- Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 8
maxRetriesPerRequest: null
maxRetriesPerRequest: null
same change
462c463
Add first-run setup and gate demo seed behind config
- Full commit hash
462c463a79b4fe09e752f88c5c4eca69dac468fc- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 9
});
});
Alex Nord
3 months ago
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 10
const pool = new Pool({
const pool = new Pool({
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 11
connectionString: process.env.DATABASE_URL ?? "postgresql://ledger:ledger@localhost:5432/ledger"
connectionString: process.env.DATABASE_URL ?? "postgresql://ledger:ledger@localhost:5432/ledger"
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 12
});
});
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 13
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 14
function buildSignedWebhookBody(secret: string, timestamp: string, body: string) {
function buildSignedWebhookBody(secret: string, timestamp: string, body: string) {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 15
return crypto.createHmac("sha256", secret).update(`${timestamp}.${body}`).digest("hex");
return crypto.createHmac("sha256", secret).update(`${timestamp}.${body}`).digest("hex");
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 16
}
}
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 17
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 18
async function deliverWebhook(deliveryId: string) {
async function deliverWebhook(deliveryId: string) {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 19
const delivery = await pool.query(
const delivery = await pool.query(
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 20
`
`
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 21
SELECT
SELECT
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 22
wd.id,
wd.id,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 23
wd.event_name,
wd.event_name,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 24
wd.payload,
wd.payload,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 25
wd.attempt_count,
wd.attempt_count,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 26
w.target_url,
w.target_url,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 27
w.signing_secret,
w.signing_secret,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 28
w.is_active
w.is_active
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 29
FROM webhook_deliveries wd
FROM webhook_deliveries wd
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 30
JOIN webhooks w ON w.id = wd.webhook_id
JOIN webhooks w ON w.id = wd.webhook_id
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 31
WHERE wd.id = $1
WHERE wd.id = $1
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 32
`,
`,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 33
[deliveryId]
[deliveryId]
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 34
);
);
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 35
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 36
if (!delivery.rowCount) {
if (!delivery.rowCount) {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 37
return { ignored: true };
return { ignored: true };
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 38
}
}
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 39
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 40
const row = delivery.rows[0];
const row = delivery.rows[0];
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 41
if (!row.is_active) {
if (!row.is_active) {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 42
return { skipped: true };
return { skipped: true };
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 43
}
}
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 44
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 45
const payload = JSON.stringify(row.payload);
const payload = JSON.stringify(row.payload);
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 46
const timestamp = new Date().toISOString();
const timestamp = new Date().toISOString();
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 47
const signature = buildSignedWebhookBody(row.signing_secret, timestamp, payload);
const signature = buildSignedWebhookBody(row.signing_secret, timestamp, payload);
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 48
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 49
try {
try {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 50
const response = await fetch(row.target_url, {
const response = await fetch(row.target_url, {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 51
method: "POST",
method: "POST",
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 52
headers: {
headers: {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 53
"Content-Type": "application/json",
"Content-Type": "application/json",
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 54
"X-Ledger-Event": row.event_name,
"X-Ledger-Event": row.event_name,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 55
"X-Ledger-Timestamp": timestamp,
"X-Ledger-Timestamp": timestamp,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 56
"X-Ledger-Signature": signature
"X-Ledger-Signature": signature
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 57
},
},
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 58
body: payload
body: payload
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 59
});
});
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 60
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 61
const responseBody = await response.text();
const responseBody = await response.text();
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 62
await pool.query(
await pool.query(
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 63
`
`
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 64
UPDATE webhook_deliveries
UPDATE webhook_deliveries
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 65
SET response_status = $2,
SET response_status = $2,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 66
response_body = $3,
response_body = $3,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 67
success = $4,
success = $4,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 68
delivered_at = now(),
delivered_at = now(),
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 69
error_message = NULL,
error_message = NULL,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 70
attempt_count = $5
attempt_count = $5
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 71
WHERE id = $1
WHERE id = $1
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 72
`,
`,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 73
[deliveryId, response.status, responseBody.slice(0, 5000), response.ok, Number(row.attempt_count ?? 0) + 1]
[deliveryId, response.status, responseBody.slice(0, 5000), response.ok, Number(row.attempt_count ?? 0) + 1]
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 74
);
);
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 75
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 76
if (!response.ok) {
if (!response.ok) {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 77
throw new Error(`Webhook returned ${response.status}`);
throw new Error(`Webhook returned ${response.status}`);
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 78
}
}
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 79
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 80
return { delivered: true };
return { delivered: true };
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 81
} catch (error) {
} catch (error) {
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 82
await pool.query(
await pool.query(
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 83
`
`
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 84
UPDATE webhook_deliveries
UPDATE webhook_deliveries
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 85
SET success = false,
SET success = false,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 86
error_message = $2,
error_message = $2,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 87
delivered_at = now(),
delivered_at = now(),
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 88
attempt_count = $3
attempt_count = $3
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 89
WHERE id = $1
WHERE id = $1
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 90
`,
`,
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 91
[deliveryId, error instanceof Error ? error.message : "Delivery failed", Number(row.attempt_count ?? 0) + 1]
[deliveryId, error instanceof Error ? error.message : "Delivery failed", Number(row.attempt_count ?? 0) + 1]
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 92
);
);
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 93
throw error;
throw error;
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 94
}
}
same change
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 95
}
}
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 96
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 97
const worker = new Worker(
const worker = new Worker(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 98
"ledger-jobs",
"ledger-jobs",
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 99
async (job) => {
async (job) => {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 100
if (job.name === "webhook.deliver") {
if (job.name === "webhook.deliver") {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 101
console.log(`processing webhook delivery ${job.id}`);
console.log(`processing webhook delivery ${job.id}`);
Alex Nord
3 months ago
5600eb6
Build enterprise imports webhooks and AI admin workflows
- Full commit hash
5600eb6c876ab31ee652ee6abe12884b31088496- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 102
return deliverWebhook(String(job.data.deliveryId));
return deliverWebhook(String(job.data.deliveryId));
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 103
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 104
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 105
if (job.name === "analytics.rollup") {
if (job.name === "analytics.rollup") {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 106
console.log(`processing analytics rollup ${job.id}`);
console.log(`processing analytics rollup ${job.id}`);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 107
return { rolledUp: true };
return { rolledUp: true };
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 108
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 109
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 110
return { ignored: true };
return { ignored: true };
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 111
},
},
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 112
{ connection }
{ connection }
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 113
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 114
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 115
worker.on("completed", (job) => {
worker.on("completed", (job) => {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 116
console.log(`job completed: ${job.name}:${job.id}`);
console.log(`job completed: ${job.name}:${job.id}`);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 117
});
});
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 118
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 119
worker.on("failed", (job, error) => {
worker.on("failed", (job, error) => {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 120
console.error(`job failed: ${job?.name}:${job?.id}`, error);
console.error(`job failed: ${job?.name}:${job?.id}`, error);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 121
});
});
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 122
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 123
console.log("Ledger worker started");
console.log("Ledger worker started");