~rockorager/go-jmap

139a2611617355d1fcf875de6eb61a60ec8671f2 — Robin Jarry 9 months ago 821d092 v0.4.3
vacationresponse: fix infinite recursion

Fix infinite recursion when marshaling a VacationResponse object to
JSON. This type alias was forgotten.

Fixes: 821d0924a12e ("dates: force UTC timezone")
Signed-off-by: Robin Jarry <robin@jarry.cc>
1 files changed, 2 insertions(+), 1 deletions(-)

M mail/vacationresponse/vacationresponse.go
M mail/vacationresponse/vacationresponse.go => mail/vacationresponse/vacationresponse.go +2 -1
@@ 60,5 60,6 @@ func (v *VacationResponse) MarshalJson() ([]byte, error) {
		utc := v.ToDate.UTC()
		v.ToDate = &utc
	}
	return json.Marshal(v)
	type Alias VacationResponse
	return json.Marshal((*Alias)(v))
}