Commit cff88c5
committed
fix: deserialize JSON fields in list_applications endpoint
The GET /api/applications endpoint was returning raw database objects
without deserializing the generated_cv and skills_gap_report fields, causing "JSON.parse: unexpected character" errors on the frontend when viewing existing applications. Now properly deserializes these fields before returning to match the behavior of the POST endpoint.1 parent 8fb3779 commit cff88c5
1 file changed
Lines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | 690 | | |
692 | | - | |
| 691 | + | |
693 | 692 | | |
694 | 693 | | |
695 | 694 | | |
696 | 695 | | |
697 | | - | |
698 | | - | |
699 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
700 | 722 | | |
701 | 723 | | |
702 | 724 | | |
| |||
0 commit comments