f576b000b7
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
14 lines
305 B
Go
14 lines
305 B
Go
package query
|
|
|
|
import (
|
|
"github.com/photoprism/photoprism/internal/entity"
|
|
)
|
|
|
|
// Errors returns the error log.
|
|
func Errors(limit, offset int) (results entity.Errors, err error) {
|
|
stmt := Db()
|
|
|
|
err = stmt.Order("error_time DESC").Limit(limit).Offset(offset).Find(&results).Error
|
|
|
|
return results, err
|
|
}
|