Skip to content

Commit

Permalink
add TODO of fixing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kennhung committed Sep 28, 2019
1 parent 38a2fad commit f4b5916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/meeting.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func (database *Database) GetMeetingsByUserId(userId string) ([]Meeting, error)
}

for index, meet := range meetings {
//TODO fix remove element of array will make index wrong
if !meet.CheckUserParticipate(userId) {
if index+1 < len(meetings) {
copy(meetings[index:], meetings[index+1:])
Expand Down

0 comments on commit f4b5916

Please sign in to comment.