photoprism/internal/query/users.go
2021-08-20 00:13:49 +02:00

14 lines
291 B
Go

package query
import (
"github.com/photoprism/photoprism/internal/entity"
)
// RegisteredUsers finds all registered users.
func RegisteredUsers() (result entity.Users) {
if err := Db().Where("id > 0").Find(&result).Error; err != nil {
log.Errorf("users: %s", err)
}
return result
}