mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-11-18 15:28:16 +01:00
Fix for notifications: When a vulnerability reappears, it should not try to recreate a ticket for it
This commit is contained in:
2 files changed
+9
-2
No files matched your search
@@ -68,6 +68,10 @@ class VulnerabilityNotificationService @Inject() (protected val dbConfigProvider
|
||||
ept.tickets.filter(_.done === false).result
|
||||
)
|
||||
|
||||
def loadAllTickets(): Future[Seq[(Int, ExportedVulnerability[T])]] = db.run(
|
||||
ept.tickets.result
|
||||
)
|
||||
|
||||
def changeProjects(ticketId: Int, diff: SetDiff[String], projects: ProjectsWithReports): Future[Unit] = db.run(
|
||||
DBIO.seq(
|
||||
ept.tickets.filter(_.id === ticketId).map(_.done).update(diff.newSet.isEmpty),
|
||||
|
||||
Reference in new issue
Block a user