mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(feeds): ttl and correct field types (#259)
This commit is contained in:
parent
5d032dd075
commit
b7d1f216c0
6 changed files with 19 additions and 8 deletions
|
@ -77,7 +77,7 @@ func (r *FeedCacheRepo) Exists(bucket string, key string) (bool, error) {
|
|||
return exists, nil
|
||||
}
|
||||
|
||||
func (r *FeedCacheRepo) Put(bucket string, key string, val []byte, ttl time.Duration) error {
|
||||
func (r *FeedCacheRepo) Put(bucket string, key string, val []byte, ttl time.Time) error {
|
||||
queryBuilder := r.db.squirrel.
|
||||
Insert("feed_cache").
|
||||
Columns("bucket", "key", "value", "ttl").
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue