Fix test fixtures
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2021-07-09 23:13:20 +02:00
parent a2353dc76f
commit 790ecfef87
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
5 changed files with 15 additions and 6 deletions

View File

@ -0,0 +1,12 @@
- entity_id: 1
user_id: 1
kind: 1
- entity_id: 15
user_id: 6
kind: 1
- entity_id: 34
user_id: 13
kind: 1
- entity_id: 23
user_id: 12
kind: 2

View File

@ -207,6 +207,5 @@
identifier: test23
owner_id: 12
namespace_id: 17
is_favorite: true
updated: 2018-12-02 15:13:12
created: 2018-12-01 15:13:12

View File

@ -8,7 +8,6 @@
created: 2018-12-01 01:12:04
updated: 2018-12-01 01:12:04
bucket_id: 1
is_favorite: true
- id: 2
title: 'task #2 done'
done: true
@ -141,7 +140,6 @@
list_id: 6
index: 1
bucket_id: 6
is_favorite: true
created: 2018-12-01 01:12:04
updated: 2018-12-01 01:12:04
- id: 16
@ -317,7 +315,6 @@
list_id: 20
index: 20
bucket_id: 5
is_favorite: true
created: 2018-12-01 01:12:04
updated: 2018-12-01 01:12:04
- id: 35

View File

@ -78,7 +78,7 @@ func isFavorite(s *xorm.Session, entityID int64, a web.Auth, kind FavoriteKind)
u, err := user.GetFromAuth(a)
if err != nil {
// Only error GetFromAuth is if it's a link share and we want to ignore that
return
return false, nil
}
return s.
@ -91,7 +91,7 @@ func getFavorites(s *xorm.Session, entityIDs []int64, a web.Auth, kind FavoriteK
u, err := user.GetFromAuth(a)
if err != nil {
// Only error GetFromAuth is if it's a link share and we want to ignore that
return
return favorites, nil
}
favs := []*Favorite{}

View File

@ -60,6 +60,7 @@ func GetTables() []interface{} {
&UnsplashPhoto{},
&SavedFilter{},
&Subscription{},
&Favorite{},
}
}