diff --git a/pkg/e621/endpoints/dmail.go b/pkg/e621/endpoints/dmail.go index 76c365b..c07e524 100644 --- a/pkg/e621/endpoints/dmail.go +++ b/pkg/e621/endpoints/dmail.go @@ -192,7 +192,7 @@ func GetAllDmails(requestContext model.RequestContext, query map[string]string) if err != nil { // Log the error and return an empty slice and the error. - return nil, err + return []model.DMail{}, nil } // Return the list of posts and no error (nil).