mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-01 22:56:41 +00:00
Fetch Activity events
This commit is contained in:
8
management/server/event.go
Normal file
8
management/server/event.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package server
|
||||
|
||||
import "github.com/netbirdio/netbird/management/server/activity"
|
||||
|
||||
// GetEvents returns a list of activity events of an account
|
||||
func (am *DefaultAccountManager) GetEvents(accountID, userID string) ([]*activity.Event, error) {
|
||||
return am.eventStore.Get(accountID, 0, 1000, true)
|
||||
}
|
||||
Reference in New Issue
Block a user