mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(http): implement missing findByID methods (#1635)
* feat(http): implement missing methods * general cleanup * unify param handling * handle not found errors * unify err handlers * fix(http): fmt type
This commit is contained in:
parent
accc875960
commit
acb91e8709
15 changed files with 379 additions and 422 deletions
|
@ -226,9 +226,7 @@ func (r *FeedRepo) Find(ctx context.Context) ([]domain.Feed, error) {
|
|||
|
||||
func (r *FeedRepo) GetLastRunDataByID(ctx context.Context, id int) (string, error) {
|
||||
queryBuilder := r.db.squirrel.
|
||||
Select(
|
||||
"last_run_data",
|
||||
).
|
||||
Select("last_run_data").
|
||||
From("feed").
|
||||
Where(sq.Eq{"id": id})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue