photoprism/internal/query/users.go

15 lines
291 B
Go
Raw Normal View History

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
}