mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-23 17:41:50 +01:00
Fix for notifications: When a vulnerability reappears, it should not try to recreate a ticket for it
This commit is contained in:
@@ -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