Skip to content

Commit 2159a0e

Browse files
authored
add only vpn field to getevents response (#39)
Signed-off-by: Ahmet Turkmen <f.ahmet.turkmen@icloud.com>
1 parent f129d6c commit 2159a0e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

database/query.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
AddTeamQuery = "INSERT INTO team (tag, event_id, email, name, password, created_at, last_access, solved_challenges)" +
3131
"VALUES ($1, $2, $3, $4, $5, $6, $7, $8)"
3232

33-
AddEventQuery = "INSERT INTO event (tag, name, available, capacity, frontends, status, exercises, started_at, finish_expected, finished_at, createdby, onlyVPN)" +
33+
AddEventQuery = "INSERT INTO event (tag, name, available, capacity, frontends, status, exercises, started_at, finish_expected, finished_at, createdby, onlyvpn)" +
3434
"VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10,$11,$12)"
3535

3636
UpdateCloseEvent = "UPDATE event SET tag = $2, finished_at = $3 WHERE tag = $1"

util/util.go

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ func getEventsResponse(result []model.Event) []*pb.GetEventResponse_Events {
336336
FinishedAt: e.FinishedAt,
337337
Status: e.Status,
338338
CreatedBy: e.CreatedBy,
339+
OnlyVPN: e.OnlyVPN,
339340
})
340341
}
341342
log.Printf("Get Events")

0 commit comments

Comments
 (0)