5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-15 07:30:26 +00:00
matterbridge/vendor/github.com/mattermost/mattermost-server/v6/model/audits.go

15 lines
297 B
Go
Raw Normal View History

2021-10-16 21:11:32 +00:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package model
type Audits []Audit
func (o Audits) Etag() string {
if len(o) > 0 {
// the first in the list is always the most current
return Etag(o[0].CreateAt)
}
return ""
}