mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 03:03:16 -06:00
continue moving db stuff around
This commit is contained in:
parent
f409f7c65a
commit
15153ee0c8
72 changed files with 923 additions and 614 deletions
|
|
@ -95,7 +95,7 @@ prepareloop:
|
|||
if preparing {
|
||||
if err := t.prepare(entry.statusID); err != nil {
|
||||
// there's been an error
|
||||
if _, ok := err.(db.ErrNoEntries); !ok {
|
||||
if err != db.ErrNoEntries {
|
||||
// it's a real error
|
||||
return fmt.Errorf("PrepareBehind: error preparing status with id %s: %s", entry.statusID, err)
|
||||
}
|
||||
|
|
@ -150,7 +150,7 @@ prepareloop:
|
|||
if preparing {
|
||||
if err := t.prepare(entry.statusID); err != nil {
|
||||
// there's been an error
|
||||
if _, ok := err.(db.ErrNoEntries); !ok {
|
||||
if err != db.ErrNoEntries {
|
||||
// it's a real error
|
||||
return fmt.Errorf("PrepareBefore: error preparing status with id %s: %s", entry.statusID, err)
|
||||
}
|
||||
|
|
@ -205,7 +205,7 @@ prepareloop:
|
|||
|
||||
if err := t.prepare(entry.statusID); err != nil {
|
||||
// there's been an error
|
||||
if _, ok := err.(db.ErrNoEntries); !ok {
|
||||
if err != db.ErrNoEntries {
|
||||
// it's a real error
|
||||
return fmt.Errorf("PrepareFromTop: error preparing status with id %s: %s", entry.statusID, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue