Fix test fixtures
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
a2353dc76f
commit
790ecfef87
|
@ -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
|
|
@ -207,6 +207,5 @@
|
||||||
identifier: test23
|
identifier: test23
|
||||||
owner_id: 12
|
owner_id: 12
|
||||||
namespace_id: 17
|
namespace_id: 17
|
||||||
is_favorite: true
|
|
||||||
updated: 2018-12-02 15:13:12
|
updated: 2018-12-02 15:13:12
|
||||||
created: 2018-12-01 15:13:12
|
created: 2018-12-01 15:13:12
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
created: 2018-12-01 01:12:04
|
created: 2018-12-01 01:12:04
|
||||||
updated: 2018-12-01 01:12:04
|
updated: 2018-12-01 01:12:04
|
||||||
bucket_id: 1
|
bucket_id: 1
|
||||||
is_favorite: true
|
|
||||||
- id: 2
|
- id: 2
|
||||||
title: 'task #2 done'
|
title: 'task #2 done'
|
||||||
done: true
|
done: true
|
||||||
|
@ -141,7 +140,6 @@
|
||||||
list_id: 6
|
list_id: 6
|
||||||
index: 1
|
index: 1
|
||||||
bucket_id: 6
|
bucket_id: 6
|
||||||
is_favorite: true
|
|
||||||
created: 2018-12-01 01:12:04
|
created: 2018-12-01 01:12:04
|
||||||
updated: 2018-12-01 01:12:04
|
updated: 2018-12-01 01:12:04
|
||||||
- id: 16
|
- id: 16
|
||||||
|
@ -317,7 +315,6 @@
|
||||||
list_id: 20
|
list_id: 20
|
||||||
index: 20
|
index: 20
|
||||||
bucket_id: 5
|
bucket_id: 5
|
||||||
is_favorite: true
|
|
||||||
created: 2018-12-01 01:12:04
|
created: 2018-12-01 01:12:04
|
||||||
updated: 2018-12-01 01:12:04
|
updated: 2018-12-01 01:12:04
|
||||||
- id: 35
|
- id: 35
|
||||||
|
|
|
@ -78,7 +78,7 @@ func isFavorite(s *xorm.Session, entityID int64, a web.Auth, kind FavoriteKind)
|
||||||
u, err := user.GetFromAuth(a)
|
u, err := user.GetFromAuth(a)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Only error GetFromAuth is if it's a link share and we want to ignore that
|
// Only error GetFromAuth is if it's a link share and we want to ignore that
|
||||||
return
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return s.
|
return s.
|
||||||
|
@ -91,7 +91,7 @@ func getFavorites(s *xorm.Session, entityIDs []int64, a web.Auth, kind FavoriteK
|
||||||
u, err := user.GetFromAuth(a)
|
u, err := user.GetFromAuth(a)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Only error GetFromAuth is if it's a link share and we want to ignore that
|
// Only error GetFromAuth is if it's a link share and we want to ignore that
|
||||||
return
|
return favorites, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
favs := []*Favorite{}
|
favs := []*Favorite{}
|
||||||
|
|
|
@ -60,6 +60,7 @@ func GetTables() []interface{} {
|
||||||
&UnsplashPhoto{},
|
&UnsplashPhoto{},
|
||||||
&SavedFilter{},
|
&SavedFilter{},
|
||||||
&Subscription{},
|
&Subscription{},
|
||||||
|
&Favorite{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue