Skip to content

Commit a51817f

Browse files
add unit and integration tests for user-vehicle assignment endpoints
1 parent 90436a2 commit a51817f

3 files changed

Lines changed: 878 additions & 0 deletions

File tree

assignment_handlers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func handleDeleteAssignment(store AssignmentDeleter) http.HandlerFunc {
109109
err = store.DeleteAssignment(r.Context(), userID, vehicleID)
110110
if err != nil {
111111
if errors.Is(err, ErrAssignmentNotFound) {
112+
slog.Warn("delete assignment: not found", "user_id", userID, "vehicle_id", vehicleID)
112113
writeJSON(w, http.StatusNotFound, map[string]string{"error": "assignment not found"})
113114
return
114115
}

0 commit comments

Comments
 (0)