mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Fix query errors
This commit is contained in:
parent
09adc06e18
commit
ebb5c4e6f7
10 changed files with 73 additions and 32 deletions
|
@ -26,8 +26,8 @@ func (db *appdbimpl) GetUserStream(uid string, start_index int, limit int) (*[]s
|
|||
SELECT "user" FROM "bans" WHERE "ban" = ?
|
||||
)
|
||||
ORDER BY "p"."date" DESC
|
||||
OFFSET ?
|
||||
LIMIT ?`, uid, uid, start_index, limit)
|
||||
LIMIT ?
|
||||
OFFSET ?`, uid, uid, limit, start_index)
|
||||
if err != nil {
|
||||
// Return the error
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue