MCPcopy Create free account
hub / github.com/Dhravya/notty / getNote

Method getNote

src/durable-objects/user-notes.ts:1012–1017  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1010 ).toArray();
1011 return Response.json(rows);
1012 }
1013 if (request.method === "POST" && path === "/media") {
1014 const body = (await request.json()) as {
1015 id: string; type: string; filename: string; r2_key: string;
1016 mime_type: string; size: number; width?: number; height?: number;
1017 };
1018 this.sql.exec(
1019 `INSERT INTO media (id, type, filename, r2_key, mime_type, size, width, height) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,
1020 body.id, body.type, body.filename, body.r2_key, body.mime_type, body.size, body.width ?? null, body.height ?? null

Callers 6

getCurrentBranchMethod · 0.95
beginEditSessionMethod · 0.95
finalizeEditSessionMethod · 0.95
reconstructVersionMethod · 0.95
fetchMethod · 0.95
webSocketMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected