Skip to content

Commit

Permalink
feat: queue improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdlangton committed Nov 7, 2024
1 parent e4abacd commit 0c3167e
Show file tree
Hide file tree
Showing 16 changed files with 1,035 additions and 675 deletions.
365 changes: 6 additions & 359 deletions functions/api/issue/[uuid].js

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions functions/api/next-issue.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { processFinding } from '@/finding';
import { AuthResult, Server } from "@/utils";
import { PrismaD1 } from '@prisma/adapter-d1';
import { PrismaClient } from '@prisma/client';
Expand Down Expand Up @@ -69,16 +70,7 @@ export async function onRequestGet(context) {
}
})

finding.references = finding?.referencesJSON ? JSON.parse(finding.referencesJSON) : []
finding.timeline = finding?.timelineJSON ? JSON.parse(finding.timelineJSON) : []
finding.exploits = finding?.exploitsJSON ? JSON.parse(finding.exploitsJSON) : []
finding.knownExploits = finding?.knownExploitsJSON ? JSON.parse(finding.knownExploitsJSON) : []
finding.aliases = finding?.aliases ? JSON.parse(finding.aliases) : []
finding.cwes = finding?.cwes ? JSON.parse(finding.cwes) : []
delete finding.referencesJSON
delete finding.knownExploitsJSON
delete finding.timelineJSON
delete finding.exploitsJSON
finding = await processFinding(prisma, env.r2artifacts, verificationResult, finding)

if (finding?.spdx?.artifact?.uuid) {
const resp = await env.r2artifacts.get(`spdx/${finding.spdx.artifact.uuid}.json`)
Expand Down
File renamed without changes
File renamed without changes
Binary file added src/assets/images/icons/logo/nvd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/images/icons/logo/osv-logo.png
Binary file not shown.
File renamed without changes
Loading

0 comments on commit 0c3167e

Please sign in to comment.