Commit 3aa65a2
committed
fix(vuln): assign_to_user RETURNING include source_count/source_names/reopen tracking
Il RETURNING di assign_to_user mancava le colonne source_count,
source_names, reopen_count, last_resolved_at, last_reopened_at che la
struct Vulnerability si aspetta dopo l'introduzione della multi-source
attribution + reopen tracking. Risultato: sqlx errore 'no column found
for name: source_count' al runtime sul singolo POST
/api/vulnerabilities/:id/assign-user. assign_to_team e
update_vulnerability erano gia' allineati, il single-user no.
Mantengo NULL::BIGINT/TEXT[] per source_count/source_names (post-assign
non serve l'attribution: chi vuole quei dati ricarica via GET /:id).1 parent 7728f15 commit 3aa65a2
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
910 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
911 | 920 | | |
912 | 921 | | |
913 | 922 | | |
| |||
0 commit comments