Add comment to content

This commit is contained in:
Nate Kelley 2025-08-07 14:10:51 -06:00
parent 1ef2983d15
commit 4006852efa
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ export const appendReportContent = async (
const result = await db
.update(reportFiles)
.set({
// From Nate: I was just thinking we do not KNOW if this is valid markdown...
content: sql`${reportFiles.content} || ${content}`,
updatedAt: new Date().toISOString(),
})

View File

@ -20,6 +20,7 @@ type ReplaceReportContentInput = z.infer<typeof ReplaceReportContentInputSchema>
export const replaceReportContent = async (
params: ReplaceReportContentInput
): Promise<{ content: string }> => {
// From Nate: I was just thinking we do not KNOW if this is valid markdown...
const { reportId, findString, replaceString } = ReplaceReportContentInputSchema.parse(params);
try {

View File

@ -64,6 +64,7 @@ export const updateReport = async (
}
if (content !== undefined) {
// From Nate: I was just thinking we do not KNOW if this is valid markdown... Maybe we should accept ReportElements and then convert to markdown? Leaving this comment here for now because we are moving fast and I don't want to block the PR.
updateData.content = content;
}