Skip to content

Commit ff341bf

Browse files
author
lleadbet
committed
adding schedules api support
1 parent f267dc9 commit ff341bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/mock_api/endpoints/schedule/segment.go

+9
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,22 @@ func (e ScheduleSegment) postSegment(w http.ResponseWriter, r *http.Request) {
154154
ID: eventID,
155155
StartTime: startTime.Format(time.RFC3339),
156156
EndTime: endTime.Format(time.RFC3339),
157+
<<<<<<< HEAD
157158
IsRecurring: *body.IsRecurring,
158159
IsVacation: false,
159160
CategoryID: body.CategoryID,
160161
Title: body.Title,
161162
UserID: userCtx.UserID,
162163
Timezone: body.Timezone,
163164
IsCanceled: &f,
165+
=======
166+
IsRecurring: true,
167+
IsVacation: false,
168+
CategoryID: body.CategoryID,
169+
Title: "Test Title",
170+
UserID: userCtx.UserID,
171+
Timezone: body.Timezone,
172+
>>>>>>> 7985dac (adding schedules api support)
164173
}
165174

166175
err := db.NewQuery(nil, 100).InsertSchedule(s)

0 commit comments

Comments
 (0)