Skip to content

Commit

Permalink
explain why type field exists in notification
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Jan 15, 2025
1 parent d16bb83 commit 0f918f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/models/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type Notification struct {
Seen bool `json:"seen" binding:"required"`
Notified bool `json:"notified" binding:"required"`
// to allow redirecting from notifications to the right pages
// for example if the type is `vm` it will be redirected to the vm page
Type string `json:"type" binding:"required"`
}

Expand Down

0 comments on commit 0f918f5

Please sign in to comment.