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/services/pages.ts
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
pages.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 type { PageDetail, PageSummary, PageUpsertInput, RoleKey, SessionUser } from "@ledger/shared";
import type { PageDetail, PageSummary, PageUpsertInput, RoleKey, SessionUser } from "@ledger/shared";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 2
import { canReadVisibility } from "@ledger/shared";
import { canReadVisibility } from "@ledger/shared";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 3
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
- 4
import { renderMarkdown } from "../utils/markdown.js";
import { renderMarkdown } from "../utils/markdown.js";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 5
import { slugify } from "../utils/slug.js";
import { slugify } from "../utils/slug.js";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 6
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 7
type PageRecord = {
type PageRecord = {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 8
id: string;
id: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 9
space_id: string;
space_id: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 10
title: string;
title: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 11
slug: string;
slug: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 12
excerpt: string | null;
excerpt: string | null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 13
visibility: "public" | "internal" | "restricted";
visibility: "public" | "internal" | "restricted";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 14
state: "draft" | "published";
state: "draft" | "published";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 15
is_public: boolean;
is_public: boolean;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 16
parent_page_id: string | null;
parent_page_id: string | null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 17
updated_at: Date;
updated_at: Date;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 18
revision_id: string;
revision_id: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 19
body_markdown: string;
body_markdown: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 20
author_name: string;
author_name: string;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 21
};
};
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 22
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
- 23
type SourceRow = {
type SourceRow = {
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
provider: "markdown_import" | "github" | "google_docs";
provider: "markdown_import" | "github" | "google_docs";
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
source_url: string | null;
source_url: string | 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
- 26
source_title: string | null;
source_title: string | 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
- 27
source_branch: string | null;
source_branch: string | 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
- 28
source_path: string | null;
source_path: string | 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
- 29
source_document_id: string | null;
source_document_id: string | 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
- 30
imported_at: Date;
imported_at: Date;
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
imported_by: string | null;
imported_by: string | 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
- 32
last_synced_at: Date | null;
last_synced_at: Date | 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
- 33
};
};
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
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 35
async function getPagePermissions(pageId: string) {
async function getPagePermissions(pageId: string) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 36
const permissions = await pool.query(
const permissions = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 37
`SELECT role_key, group_id FROM page_permissions WHERE page_id = $1`,
`SELECT role_key, group_id FROM page_permissions WHERE page_id = $1`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 38
[pageId]
[pageId]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 39
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 40
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 41
return {
return {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 42
roleKeys: permissions.rows.map((row) => row.role_key).filter(Boolean) as RoleKey[],
roleKeys: permissions.rows.map((row) => row.role_key).filter(Boolean) as RoleKey[],
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 43
groupIds: permissions.rows.map((row) => row.group_id).filter(Boolean) as string[]
groupIds: permissions.rows.map((row) => row.group_id).filter(Boolean) as string[]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 44
};
};
same change
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
async function getPageTags(pageId: string): Promise<string[]> {
async function getPageTags(pageId: string): Promise<string[]> {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 48
const tags = await pool.query(
const tags = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 49
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 50
SELECT t.name
SELECT t.name
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 51
FROM page_tags pt
FROM page_tags pt
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 52
JOIN tags t ON t.id = pt.tag_id
JOIN tags t ON t.id = pt.tag_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 53
WHERE pt.page_id = $1
WHERE pt.page_id = $1
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 54
ORDER BY t.name ASC
ORDER BY t.name ASC
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 55
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 56
[pageId]
[pageId]
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
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 59
return tags.rows.map((row) => row.name);
return tags.rows.map((row) => row.name);
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
async function getPageSource(pageId: string) {
async function getPageSource(pageId: 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
- 63
const source = await pool.query(
const source = 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
- 64
`
`
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
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
- 66
eps.provider,
eps.provider,
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
eps.source_url,
eps.source_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
- 68
eps.source_title,
eps.source_title,
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
eps.source_branch,
eps.source_branch,
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
eps.source_path,
eps.source_path,
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
eps.source_document_id,
eps.source_document_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
- 72
eps.imported_at,
eps.imported_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
- 73
COALESCE(u.display_name, 'Unknown') AS imported_by,
COALESCE(u.display_name, 'Unknown') AS imported_by,
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
eps.last_synced_at
eps.last_synced_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
- 75
FROM external_page_sources eps
FROM external_page_sources eps
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
LEFT JOIN users u ON u.id = eps.imported_by_user_id
LEFT JOIN users u ON u.id = eps.imported_by_user_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
- 77
WHERE eps.page_id = $1
WHERE eps.page_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
`,
`,
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
[pageId]
[pageId]
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
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
if (!source.rowCount) {
if (!source.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
- 83
return null;
return 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
- 84
}
}
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
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
const row = source.rows[0] as SourceRow;
const row = source.rows[0] as SourceRow;
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
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
- 88
provider: row.provider,
provider: row.provider,
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
sourceUrl: row.source_url,
sourceUrl: row.source_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
- 90
sourceTitle: row.source_title,
sourceTitle: row.source_title,
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
sourceBranch: row.source_branch,
sourceBranch: row.source_branch,
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
sourcePath: row.source_path,
sourcePath: row.source_path,
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
sourceDocumentId: row.source_document_id,
sourceDocumentId: row.source_document_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
- 94
importedAt: row.imported_at.toISOString(),
importedAt: row.imported_at.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
- 95
importedBy: row.imported_by,
importedBy: row.imported_by,
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
lastSyncedAt: row.last_synced_at?.toISOString() ?? null
lastSyncedAt: row.last_synced_at?.toISOString() ?? 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
- 97
};
};
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
}
}
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
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 100
function toSummary(row: PageRecord, tags: string[]): PageSummary {
function toSummary(row: PageRecord, tags: string[]): PageSummary {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 101
return {
return {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 102
id: row.id,
id: row.id,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 103
spaceId: row.space_id,
spaceId: row.space_id,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 104
title: row.title,
title: row.title,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 105
slug: row.slug,
slug: row.slug,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 106
excerpt: row.excerpt,
excerpt: row.excerpt,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 107
visibility: row.visibility,
visibility: row.visibility,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 108
state: row.state,
state: row.state,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 109
isPublic: row.is_public,
isPublic: row.is_public,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 110
parentPageId: row.parent_page_id,
parentPageId: row.parent_page_id,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 111
tags,
tags,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 112
updatedAt: row.updated_at.toISOString()
updatedAt: row.updated_at.toISOString()
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
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 116
async function upsertTags(pageId: string, tagNames: string[] = []) {
async function upsertTags(pageId: string, tagNames: string[] = []) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 117
await pool.query("DELETE FROM page_tags WHERE page_id = $1", [pageId]);
await pool.query("DELETE FROM page_tags WHERE page_id = $1", [pageId]);
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
for (const tagName of tagNames) {
for (const tagName of tagNames) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 120
const normalized = tagName.trim().toLowerCase();
const normalized = tagName.trim().toLowerCase();
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 121
if (!normalized) continue;
if (!normalized) continue;
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
const tag = await pool.query(
const tag = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 124
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 125
INSERT INTO tags (name)
INSERT INTO tags (name)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 126
VALUES ($1)
VALUES ($1)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 127
ON CONFLICT (name) DO UPDATE SET name = EXCLUDED.name
ON CONFLICT (name) DO UPDATE SET name = EXCLUDED.name
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 128
RETURNING id
RETURNING id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 129
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 130
[normalized]
[normalized]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 131
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 132
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 133
await pool.query(
await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 134
`INSERT INTO page_tags (page_id, tag_id) VALUES ($1, $2) ON CONFLICT DO NOTHING`,
`INSERT INTO page_tags (page_id, tag_id) VALUES ($1, $2) ON CONFLICT DO NOTHING`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 135
[pageId, tag.rows[0].id]
[pageId, tag.rows[0].id]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 136
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 137
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 138
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 139
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 140
async function upsertPermissions(
async function upsertPermissions(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 141
pageId: string,
pageId: string,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 142
allowedRoleKeys: RoleKey[] = [],
allowedRoleKeys: RoleKey[] = [],
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 143
allowedGroupIds: string[] = []
allowedGroupIds: string[] = []
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 144
) {
) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 145
await pool.query("DELETE FROM page_permissions WHERE page_id = $1", [pageId]);
await pool.query("DELETE FROM page_permissions WHERE page_id = $1", [pageId]);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 146
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 147
for (const roleKey of allowedRoleKeys) {
for (const roleKey of allowedRoleKeys) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 148
await pool.query(`INSERT INTO page_permissions (page_id, role_key) VALUES ($1, $2)`, [
await pool.query(`INSERT INTO page_permissions (page_id, role_key) VALUES ($1, $2)`, [
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 149
pageId,
pageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 150
roleKey
roleKey
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 151
]);
]);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 152
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 153
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 154
for (const groupId of allowedGroupIds) {
for (const groupId of allowedGroupIds) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 155
await pool.query(`INSERT INTO page_permissions (page_id, group_id) VALUES ($1, $2)`, [
await pool.query(`INSERT INTO page_permissions (page_id, group_id) VALUES ($1, $2)`, [
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 156
pageId,
pageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 157
groupId
groupId
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 158
]);
]);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 159
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 160
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 161
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 162
export async function listSpaces(user: SessionUser | null) {
export async function listSpaces(user: SessionUser | null) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 163
const result = await pool.query(`SELECT id, name, key, visibility FROM spaces ORDER BY name ASC`);
const result = await pool.query(`SELECT id, name, key, visibility FROM spaces ORDER BY name ASC`);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 164
return result.rows.filter((row) => canReadVisibility(user, row.visibility, [], []));
return result.rows.filter((row) => canReadVisibility(user, row.visibility, [], []));
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 165
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 166
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 167
export async function listPagesForSpace(spaceKey: string, user: SessionUser | null) {
export async function listPagesForSpace(spaceKey: string, user: SessionUser | null) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 168
const result = await pool.query(
const result = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 169
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 170
SELECT
SELECT
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 171
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 172
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 173
COALESCE(u.display_name, 'Unknown') AS author_name
COALESCE(u.display_name, 'Unknown') AS author_name
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 174
FROM pages p
FROM pages p
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 175
JOIN spaces s ON s.id = p.space_id
JOIN spaces s ON s.id = p.space_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 176
JOIN page_revisions pr ON pr.id = p.current_revision_id
JOIN page_revisions pr ON pr.id = p.current_revision_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 177
LEFT JOIN users u ON u.id = pr.edited_by_user_id
LEFT JOIN users u ON u.id = pr.edited_by_user_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 178
WHERE s.key = $1 AND p.state = 'published'
WHERE s.key = $1 AND p.state = 'published'
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 179
ORDER BY p.title ASC
ORDER BY p.title ASC
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 180
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 181
[spaceKey]
[spaceKey]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 182
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 183
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 184
const pages: PageSummary[] = [];
const pages: PageSummary[] = [];
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 185
for (const row of result.rows as PageRecord[]) {
for (const row of result.rows as PageRecord[]) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 186
const permissions = await getPagePermissions(row.id);
const permissions = await getPagePermissions(row.id);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 187
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 188
continue;
continue;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 189
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 190
pages.push(toSummary(row, await getPageTags(row.id)));
pages.push(toSummary(row, await getPageTags(row.id)));
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 191
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 192
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 193
return pages;
return pages;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 194
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 195
Alex Nord
3 months ago
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 196
export async function listDraftPages(user: SessionUser | null) {
export async function listDraftPages(user: SessionUser | null) {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 197
if (!user) {
if (!user) {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 198
return [];
return [];
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 199
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 200
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 201
const result = await pool.query(
const result = await pool.query(
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 202
`
`
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 203
SELECT
SELECT
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 204
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 205
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 206
COALESCE(u.display_name, 'Unknown') AS author_name
COALESCE(u.display_name, 'Unknown') AS author_name
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 207
FROM pages p
FROM pages p
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 208
JOIN page_revisions pr ON pr.id = p.current_revision_id
JOIN page_revisions pr ON pr.id = p.current_revision_id
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 209
LEFT JOIN users u ON u.id = pr.edited_by_user_id
LEFT JOIN users u ON u.id = pr.edited_by_user_id
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 210
WHERE p.state = 'draft'
WHERE p.state = 'draft'
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 211
ORDER BY p.updated_at DESC
ORDER BY p.updated_at DESC
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 212
`
`
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 213
);
);
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 214
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 215
const drafts: PageSummary[] = [];
const drafts: PageSummary[] = [];
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 216
for (const row of result.rows as PageRecord[]) {
for (const row of result.rows as PageRecord[]) {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 217
const permissions = await getPagePermissions(row.id);
const permissions = await getPagePermissions(row.id);
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 218
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 219
continue;
continue;
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 220
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 221
drafts.push(toSummary(row, await getPageTags(row.id)));
drafts.push(toSummary(row, await getPageTags(row.id)));
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 222
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 223
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 224
return drafts;
return drafts;
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 225
}
}
same change
ea3e37e
Continuing UI fixes
- Full commit hash
ea3e37e37b76a90a5a290f47538dfb1ceac8c446- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 226
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 227
export async function getPageBySlug(slug: string, user: SessionUser | null): Promise<PageDetail | null> {
export async function getPageBySlug(slug: string, user: SessionUser | null): Promise<PageDetail | null> {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 228
const result = await pool.query(
const result = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 229
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 230
SELECT
SELECT
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 231
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 232
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 233
COALESCE(u.display_name, 'Unknown') AS author_name
COALESCE(u.display_name, 'Unknown') AS author_name
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 234
FROM pages p
FROM pages p
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 235
JOIN page_revisions pr ON pr.id = p.current_revision_id
JOIN page_revisions pr ON pr.id = p.current_revision_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 236
LEFT JOIN users u ON u.id = pr.edited_by_user_id
LEFT JOIN users u ON u.id = pr.edited_by_user_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 237
WHERE p.slug = $1
WHERE p.slug = $1
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 238
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 239
[slug]
[slug]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 240
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 241
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 242
if (!result.rowCount) {
if (!result.rowCount) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 243
return null;
return null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 244
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 245
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 246
const row = result.rows[0] as PageRecord;
const row = result.rows[0] as PageRecord;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 247
const permissions = await getPagePermissions(row.id);
const permissions = await getPagePermissions(row.id);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 248
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 249
return null;
return null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 250
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 251
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 252
const tags = await getPageTags(row.id);
const tags = await getPageTags(row.id);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 253
const rendered = renderMarkdown(row.body_markdown);
const rendered = renderMarkdown(row.body_markdown);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 254
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 255
return {
return {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 256
...toSummary(row, tags),
...toSummary(row, tags),
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 257
bodyMarkdown: row.body_markdown,
bodyMarkdown: row.body_markdown,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 258
bodyHtml: rendered.bodyHtml,
bodyHtml: rendered.bodyHtml,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 259
toc: rendered.toc,
toc: rendered.toc,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 260
revisionId: row.revision_id,
revisionId: row.revision_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
- 261
authorName: row.author_name,
authorName: row.author_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
- 262
source: await getPageSource(row.id)
source: await getPageSource(row.id)
Alex Nord
3 months ago
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 263
};
};
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 264
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 265
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 266
export async function createOrUpdatePage(existingPageId: string | null, input: PageUpsertInput, actorUserId: string) {
export async function createOrUpdatePage(existingPageId: string | null, input: PageUpsertInput, actorUserId: string) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 267
const rendered = renderMarkdown(input.bodyMarkdown);
const rendered = renderMarkdown(input.bodyMarkdown);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 268
const slug = slugify(input.slug ?? input.title);
const slug = slugify(input.slug ?? input.title);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 269
const isPublic = input.visibility === "public" && input.state === "published";
const isPublic = input.visibility === "public" && input.state === "published";
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 270
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 271
await pool.query("BEGIN");
await pool.query("BEGIN");
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 272
try {
try {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 273
const pageResult = existingPageId
const pageResult = existingPageId
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 274
? await pool.query(
? await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 275
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 276
UPDATE pages
UPDATE pages
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 277
SET
SET
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 278
space_id = $2,
space_id = $2,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 279
title = $3,
title = $3,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 280
slug = $4,
slug = $4,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 281
excerpt = $5,
excerpt = $5,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 282
visibility = $6,
visibility = $6,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 283
state = $7,
state = $7,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 284
is_public = $8,
is_public = $8,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 285
parent_page_id = $9,
parent_page_id = $9,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 286
updated_at = now()
updated_at = now()
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 287
WHERE id = $1
WHERE id = $1
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 288
RETURNING id
RETURNING id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 289
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 290
[
[
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 291
existingPageId,
existingPageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 292
input.spaceId,
input.spaceId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 293
input.title,
input.title,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 294
slug,
slug,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 295
input.excerpt ?? null,
input.excerpt ?? null,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 296
input.visibility,
input.visibility,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 297
input.state,
input.state,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 298
isPublic,
isPublic,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 299
input.parentPageId ?? null
input.parentPageId ?? null
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 300
]
]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 301
)
)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 302
: await pool.query(
: await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 303
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 304
INSERT INTO pages (
INSERT INTO pages (
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 305
space_id, parent_page_id, title, slug, excerpt, visibility, state, is_public, owner_user_id
space_id, parent_page_id, title, slug, excerpt, visibility, state, is_public, owner_user_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 306
)
)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 307
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 308
RETURNING id
RETURNING id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 309
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 310
[
[
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 311
input.spaceId,
input.spaceId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 312
input.parentPageId ?? null,
input.parentPageId ?? null,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 313
input.title,
input.title,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 314
slug,
slug,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 315
input.excerpt ?? null,
input.excerpt ?? null,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 316
input.visibility,
input.visibility,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 317
input.state,
input.state,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 318
isPublic,
isPublic,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 319
actorUserId
actorUserId
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 320
]
]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 321
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 322
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 323
const pageId = pageResult.rows[0].id;
const pageId = pageResult.rows[0].id;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 324
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 325
const revision = await pool.query(
const revision = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 326
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 327
INSERT INTO page_revisions (
INSERT INTO page_revisions (
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 328
page_id, title, slug, excerpt, visibility, state, body_markdown, frontmatter, tag_snapshot, edited_by_user_id
page_id, title, slug, excerpt, visibility, state, body_markdown, frontmatter, tag_snapshot, edited_by_user_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 329
)
)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 330
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 331
RETURNING id
RETURNING id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 332
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 333
[
[
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 334
pageId,
pageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 335
input.title,
input.title,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 336
slug,
slug,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 337
input.excerpt ?? null,
input.excerpt ?? null,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 338
input.visibility,
input.visibility,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 339
input.state,
input.state,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 340
rendered.bodyMarkdown,
rendered.bodyMarkdown,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 341
JSON.stringify(rendered.frontmatter),
JSON.stringify(rendered.frontmatter),
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 342
JSON.stringify(input.tagNames ?? []),
JSON.stringify(input.tagNames ?? []),
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 343
actorUserId
actorUserId
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 344
]
]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 345
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 346
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 347
await pool.query(`UPDATE pages SET current_revision_id = $2 WHERE id = $1`, [
await pool.query(`UPDATE pages SET current_revision_id = $2 WHERE id = $1`, [
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 348
pageId,
pageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 349
revision.rows[0].id
revision.rows[0].id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 350
]);
]);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 351
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 352
await upsertTags(pageId, input.tagNames);
await upsertTags(pageId, input.tagNames);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 353
await upsertPermissions(pageId, input.allowedRoleKeys, input.allowedGroupIds);
await upsertPermissions(pageId, input.allowedRoleKeys, input.allowedGroupIds);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 354
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 355
await pool.query("COMMIT");
await pool.query("COMMIT");
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 356
return { pageId, revisionId: revision.rows[0].id, slug };
return { pageId, revisionId: revision.rows[0].id, slug };
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 357
} catch (error) {
} catch (error) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 358
await pool.query("ROLLBACK");
await pool.query("ROLLBACK");
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 359
throw error;
throw error;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 360
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 361
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 362
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 363
export async function getPageMetadata(pageId: string, user: SessionUser | null) {
export async function getPageMetadata(pageId: string, user: SessionUser | null) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 364
const page = await pool.query(
const page = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 365
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 366
SELECT id, title, slug, visibility, state, updated_at
SELECT id, title, slug, visibility, state, updated_at
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 367
FROM pages
FROM pages
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 368
WHERE id = $1
WHERE id = $1
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 369
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 370
[pageId]
[pageId]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 371
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 372
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 373
if (!page.rowCount) {
if (!page.rowCount) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 374
return null;
return null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 375
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 376
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 377
const permissions = await getPagePermissions(pageId);
const permissions = await getPagePermissions(pageId);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 378
const row = page.rows[0];
const row = page.rows[0];
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 379
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 380
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
if (!canReadVisibility(user, row.visibility, permissions.roleKeys, permissions.groupIds)) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 381
return null;
return null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 382
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 383
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 384
return {
return {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 385
...row,
...row,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 386
permissions
permissions
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 387
};
};
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 388
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 389
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 390
export async function listPageRevisions(pageId: string, user: SessionUser | null) {
export async function listPageRevisions(pageId: string, user: SessionUser | null) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 391
const metadata = await getPageMetadata(pageId, user);
const metadata = await getPageMetadata(pageId, user);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 392
if (!metadata) {
if (!metadata) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 393
return null;
return null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 394
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 395
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 396
const revisions = await pool.query(
const revisions = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 397
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 398
SELECT pr.id, pr.title, pr.slug, pr.visibility, pr.state, pr.created_at,
SELECT pr.id, pr.title, pr.slug, pr.visibility, pr.state, pr.created_at,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 399
COALESCE(u.display_name, 'Unknown') AS editor_name
COALESCE(u.display_name, 'Unknown') AS editor_name
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 400
FROM page_revisions pr
FROM page_revisions pr
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 401
LEFT JOIN users u ON u.id = pr.edited_by_user_id
LEFT JOIN users u ON u.id = pr.edited_by_user_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 402
WHERE pr.page_id = $1
WHERE pr.page_id = $1
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 403
ORDER BY pr.created_at DESC
ORDER BY pr.created_at DESC
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 404
`,
`,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 405
[pageId]
[pageId]
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 406
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 407
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 408
return revisions.rows;
return revisions.rows;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 409
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 410
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 411
export async function rollbackPageRevision(pageId: string, revisionId: string, actorUserId: string) {
export async function rollbackPageRevision(pageId: string, revisionId: string, actorUserId: string) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 412
const revision = await pool.query(`SELECT * FROM page_revisions WHERE page_id = $1 AND id = $2`, [
const revision = await pool.query(`SELECT * FROM page_revisions WHERE page_id = $1 AND id = $2`, [
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 413
pageId,
pageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 414
revisionId
revisionId
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 415
]);
]);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 416
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 417
if (!revision.rowCount) {
if (!revision.rowCount) {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 418
return null;
return null;
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 419
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 420
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 421
const currentPage = await pool.query(`SELECT space_id, parent_page_id FROM pages WHERE id = $1`, [pageId]);
const currentPage = await pool.query(`SELECT space_id, parent_page_id FROM pages WHERE id = $1`, [pageId]);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 422
const row = revision.rows[0];
const row = revision.rows[0];
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 423
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 424
return createOrUpdatePage(
return createOrUpdatePage(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 425
pageId,
pageId,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 426
{
{
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 427
spaceId: currentPage.rows[0].space_id,
spaceId: currentPage.rows[0].space_id,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 428
parentPageId: currentPage.rows[0].parent_page_id,
parentPageId: currentPage.rows[0].parent_page_id,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 429
title: row.title,
title: row.title,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 430
slug: row.slug,
slug: row.slug,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 431
bodyMarkdown: row.body_markdown,
bodyMarkdown: row.body_markdown,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 432
excerpt: row.excerpt,
excerpt: row.excerpt,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 433
visibility: row.visibility,
visibility: row.visibility,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 434
state: row.state,
state: row.state,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 435
tagNames: row.tag_snapshot
tagNames: row.tag_snapshot
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 436
},
},
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 437
actorUserId
actorUserId
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 438
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 439
}
}
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 440
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 441
export async function getSearchCandidates() {
export async function getSearchCandidates() {
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 442
const result = await pool.query(
const result = await pool.query(
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 443
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 444
SELECT
SELECT
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 445
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
p.id, p.space_id, p.title, p.slug, p.excerpt, p.visibility, p.state, p.is_public,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 446
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
p.parent_page_id, p.updated_at, pr.id AS revision_id, pr.body_markdown,
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 447
COALESCE(u.display_name, 'Unknown') AS author_name
COALESCE(u.display_name, 'Unknown') AS author_name
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 448
FROM pages p
FROM pages p
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 449
JOIN page_revisions pr ON pr.id = p.current_revision_id
JOIN page_revisions pr ON pr.id = p.current_revision_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 450
LEFT JOIN users u ON u.id = pr.edited_by_user_id
LEFT JOIN users u ON u.id = pr.edited_by_user_id
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 451
WHERE p.state = 'published'
WHERE p.state = 'published'
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 452
`
`
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 453
);
);
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 454
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 455
return result.rows as PageRecord[];
return result.rows as PageRecord[];
same change
4527dbd
First commit v2
- Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27- Author
- Alex Nord <[email protected]>
- Date
- 3 months ago
- Selected line
- 456
}
}