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/api/src/http/routes/webhooks.ts
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
webhooks.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 { Router } from "express";
import { Router } from "express";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 2
import { z } from "zod";
import { z } from "zod";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 3
import { requireAdmin } from "../middleware/auth.js";
import { requireAdmin } from "../middleware/auth.js";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 4
import { pool } from "../../db/pool.js";
import { pool } from "../../db/pool.js";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 5
import { logAudit } from "../../services/audit.js";
import { logAudit } from "../../services/audit.js";
Alex Nord
3 months ago
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 6
import { enqueueWebhookEvent } from "../../services/webhooks.js";
import { enqueueWebhookEvent } from "../../services/webhooks.js";
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 7
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 8
const webhookSchema = z.object({
const webhookSchema = z.object({
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 9
name: z.string().min(2),
name: z.string().min(2),
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 10
targetUrl: z.string().url(),
targetUrl: z.string().url(),
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 11
signingSecret: z.string().min(8),
signingSecret: z.string().min(8),
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
- 12
events: z.array(z.enum([
events: z.array(z.enum([
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
"page.created",
"page.created",
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
"page.updated",
"page.updated",
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
"page.deleted",
"page.deleted",
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
"page.published",
"page.published",
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
"feedback.created",
"feedback.created",
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
"user.invited",
"user.invited",
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
"search.no_results"
"search.no_results"
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
])).min(1),
])).min(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
- 21
isActive: z.boolean().default(true)
isActive: z.boolean().default(true)
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 22
});
});
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 23
Alex Nord
3 months ago
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 24
const webhookUpdateSchema = webhookSchema.extend({
const webhookUpdateSchema = webhookSchema.extend({
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 25
signingSecret: z.string().optional()
signingSecret: z.string().optional()
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 26
});
});
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 27
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 28
export const webhooksRouter = Router();
export const webhooksRouter = Router();
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 29
webhooksRouter.use(requireAdmin);
webhooksRouter.use(requireAdmin);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 30
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
- 31
function toWebhookResponse(row: Record<string, unknown>) {
function toWebhookResponse(row: Record<string, unknown>) {
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
return {
return {
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
id: row.id,
id: row.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
- 34
name: row.name,
name: row.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
- 35
targetUrl: row.target_url,
targetUrl: 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
- 36
isActive: row.is_active,
isActive: 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
- 37
events: row.events,
events: row.events,
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
createdAt: row.created_at
createdAt: row.created_at
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
}
}
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
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 42
webhooksRouter.get("/", async (_req, res) => {
webhooksRouter.get("/", async (_req, res) => {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 43
const result = await pool.query(`SELECT * FROM webhooks ORDER BY created_at DESC`);
const result = await pool.query(`SELECT * FROM webhooks ORDER BY created_at DESC`);
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
- 44
return res.json({ webhooks: result.rows.map((row) => toWebhookResponse(row)) });
return res.json({ webhooks: result.rows.map((row) => toWebhookResponse(row)) });
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 45
});
});
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 46
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 47
webhooksRouter.post("/", async (req, res) => {
webhooksRouter.post("/", async (req, res) => {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 48
const input = webhookSchema.parse(req.body);
const input = webhookSchema.parse(req.body);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 49
const created = await pool.query(
const created = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 50
`
`
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
- 51
INSERT INTO webhooks (name, target_url, signing_secret, events, is_active)
INSERT INTO webhooks (name, target_url, signing_secret, events, 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
- 52
VALUES ($1, $2, $3, $4, $5)
VALUES ($1, $2, $3, $4, $5)
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 53
RETURNING *
RETURNING *
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 54
`,
`,
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
- 55
[input.name, input.targetUrl, input.signingSecret, JSON.stringify(input.events), input.isActive]
[input.name, input.targetUrl, input.signingSecret, JSON.stringify(input.events), input.isActive]
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 56
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 57
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 58
await logAudit(req.user!.id, "webhook.create", "webhook", created.rows[0].id, {
await logAudit(req.user!.id, "webhook.create", "webhook", created.rows[0].id, {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 59
events: input.events
events: input.events
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 60
});
});
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 61
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
- 62
return res.status(201).json(toWebhookResponse(created.rows[0]));
return res.status(201).json(toWebhookResponse(created.rows[0]));
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 63
});
});
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 64
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
- 65
webhooksRouter.put("/:webhookId", async (req, res) => {
webhooksRouter.put("/:webhookId", async (req, res) => {
Alex Nord
3 months ago
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 66
const input = webhookUpdateSchema.parse(req.body);
const input = webhookUpdateSchema.parse(req.body);
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 67
const existing = await pool.query(`SELECT signing_secret FROM webhooks WHERE id = $1`, [req.params.webhookId]);
const existing = await pool.query(`SELECT signing_secret FROM webhooks WHERE id = $1`, [req.params.webhookId]);
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 68
if (!existing.rowCount) {
if (!existing.rowCount) {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 69
return res.status(404).json({ error: "Webhook not found" });
return res.status(404).json({ error: "Webhook not found" });
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 70
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 71
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 72
const signingSecret = input.signingSecret?.trim() ? input.signingSecret : existing.rows[0].signing_secret;
const signingSecret = input.signingSecret?.trim() ? input.signingSecret : existing.rows[0].signing_secret;
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
- 73
const updated = await pool.query(
const updated = 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
- 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
UPDATE webhooks
UPDATE webhooks
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
SET name = $2, target_url = $3, signing_secret = $4, events = $5, is_active = $6
SET name = $2, target_url = $3, signing_secret = $4, events = $5, is_active = $6
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
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
- 78
RETURNING *
RETURNING *
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
[
[
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
req.params.webhookId,
req.params.webhookId,
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
input.name,
input.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
- 83
input.targetUrl,
input.targetUrl,
Alex Nord
3 months ago
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 84
signingSecret,
signingSecret,
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
- 85
JSON.stringify(input.events),
JSON.stringify(input.events),
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
input.isActive
input.isActive
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
]
]
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
);
);
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
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
await logAudit(req.user!.id, "webhook.update", "webhook", req.params.webhookId, {
await logAudit(req.user!.id, "webhook.update", "webhook", req.params.webhookId, {
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
events: input.events
events: input.events
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
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
return res.json(toWebhookResponse(updated.rows[0]));
return res.json(toWebhookResponse(updated.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
- 95
});
});
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
- 96
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
- 97
webhooksRouter.get("/:webhookId/deliveries", async (req, res) => {
webhooksRouter.get("/:webhookId/deliveries", async (req, res) => {
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
- 98
const deliveries = await pool.query(
const deliveries = 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
- 99
`
`
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
- 100
SELECT id, event_name, response_status, success, delivered_at, created_at, error_message, attempt_count
SELECT id, event_name, response_status, success, delivered_at, created_at, error_message, 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
- 101
FROM webhook_deliveries
FROM 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
- 102
WHERE webhook_id = $1
WHERE webhook_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
- 103
ORDER BY created_at DESC
ORDER BY created_at DESC
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
- 104
LIMIT 50
LIMIT 50
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
- 105
`,
`,
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
- 106
[req.params.webhookId]
[req.params.webhookId]
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
- 107
);
);
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
- 108
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
- 109
return res.json({ deliveries: deliveries.rows });
return res.json({ deliveries: deliveries.rows });
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
- 110
});
});
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
- 111
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
- 112
webhooksRouter.delete("/:webhookId", async (req, res) => {
webhooksRouter.delete("/:webhookId", async (req, res) => {
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
- 113
const deleted = await pool.query(`DELETE FROM webhooks WHERE id = $1 RETURNING id`, [req.params.webhookId]);
const deleted = await pool.query(`DELETE FROM webhooks WHERE id = $1 RETURNING id`, [req.params.webhookId]);
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
- 114
if (!deleted.rowCount) {
if (!deleted.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
- 115
return res.status(404).json({ error: "Webhook not found" });
return res.status(404).json({ error: "Webhook not found" });
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
- 116
}
}
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
- 117
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
- 118
await logAudit(req.user!.id, "webhook.delete", "webhook", req.params.webhookId);
await logAudit(req.user!.id, "webhook.delete", "webhook", req.params.webhookId);
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
- 119
return res.status(204).send();
return res.status(204).send();
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
- 120
});
});
Alex Nord
3 months ago
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 121
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 122
webhooksRouter.post("/:webhookId/test", async (req, res) => {
webhooksRouter.post("/:webhookId/test", async (req, res) => {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 123
const webhook = await pool.query(`SELECT id FROM webhooks WHERE id = $1`, [req.params.webhookId]);
const webhook = await pool.query(`SELECT id FROM webhooks WHERE id = $1`, [req.params.webhookId]);
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 124
if (!webhook.rowCount) {
if (!webhook.rowCount) {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 125
return res.status(404).json({ error: "Webhook not found" });
return res.status(404).json({ error: "Webhook not found" });
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 126
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 127
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 128
await enqueueWebhookEvent(
await enqueueWebhookEvent(
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 129
"page.updated",
"page.updated",
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 130
{
{
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 131
pageId: "test-page",
pageId: "test-page",
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 132
slug: "webhook-test",
slug: "webhook-test",
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 133
test: true
test: true
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 134
},
},
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 135
{
{
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 136
actor: {
actor: {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 137
id: req.user!.id,
id: req.user!.id,
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 138
name: req.user!.displayName,
name: req.user!.displayName,
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 139
email: req.user!.email
email: req.user!.email
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 140
},
},
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 141
workspaceId: "test-workspace"
workspaceId: "test-workspace"
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 142
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 143
);
);
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 144
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 145
return res.status(202).json({ queued: true });
return res.status(202).json({ queued: true });
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 146
});
});