Skip to content

Commit

Permalink
Merge pull request #411 from desci-labs/quick-fixes
Browse files Browse the repository at this point in the history
ensureDotInUuid in email fixed
  • Loading branch information
hubsmoke authored Jun 28, 2024
2 parents 1b1ed31 + 317a241 commit 20dc6d5
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 6 deletions.
230 changes: 227 additions & 3 deletions desci-media-isolated/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions desci-media-isolated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"pdf2pic": "^3.1.1",
"pdflib-fontkit": "^1.8.11",
"pino": "^9.2.0",
"pino-pretty": "^7.0.0",
"tsx": "^4.7.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export const emailPublishPackage = async (
});

if (!node) return res.status(404).json({ ok: false, error: 'Node not found' });

// debugger; //
const distPdfEntry = await prisma.distributionPdfs.findFirst({
where: { distPdfCid: prepubDistPdfCid, nodeUuid: node.uuid },
where: { distPdfCid: prepubDistPdfCid, nodeUuid: ensureUuidEndsWithDot(node.uuid) },
});
if (!distPdfEntry) return res.status(404).json({ ok: false, error: 'Distribution PDF not found' });

Expand Down
2 changes: 1 addition & 1 deletion desci-server/src/controllers/nodes/frontmatterPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const frontmatterPreview = async (

if (user) {
// Check if user owns node, if requesting previews
const node = await prisma.node.findFirst({
const node = await prisma.node.findFirst({\
where: {
ownerId: user.id,
uuid: ensureUuidEndsWithDot(uuid),
Expand Down

0 comments on commit 20dc6d5

Please sign in to comment.