Fix vulnerability deletion API. #11
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: svrjs/svrjs-nextjs-website#11
Loadingβ¦
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I tried to delete a vulnerability from an administration panel, there was a 404 HTTP error. When I checked developer tools, there was a "Vulnerability not found" message. When I checked the source code, other API endpoints involving vulnerabilities use "downloadsDatabase" database, but the /api/delete/vulnerability/[id] API endpoint doesn't implicitly use "downloadsDatabase" database, just a database from the connection string, which may not match the "downloadsDatabase" database. So I probably fixed that by configuring MongoDB driver in the /api/delete/vulnerability/[id] API endpoint to use "downloadsDatabase" database.
@DorianNiemiecSVRJS is attempting to deploy a commit to the proxyy587's projects Team on Vercel.
A member of the Team first needs to authorize it.
β Deploy Preview for svrjs ready!
68e44fafc7
Toggle QR Code...
Use your smartphone camera to open QR code link.
Lighthouse
Performance: 82
Accessibility: 98
Best Practices: 83
SEO: 92
PWA: -
View the detailed breakdown and full score reports
To edit notification comments on pull requests, go to your Netlify site configuration.