mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add Betula integration
This commit is contained in:
parent
a334c8e691
commit
92db691344
26 changed files with 196 additions and 4 deletions
|
@ -197,7 +197,10 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
|
|||
raindrop_enabled,
|
||||
raindrop_token,
|
||||
raindrop_collection_id,
|
||||
raindrop_tags
|
||||
raindrop_tags,
|
||||
betula_enabled,
|
||||
betula_url,
|
||||
betula_token
|
||||
FROM
|
||||
integrations
|
||||
WHERE
|
||||
|
@ -294,6 +297,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
|
|||
&integration.RaindropToken,
|
||||
&integration.RaindropCollectionID,
|
||||
&integration.RaindropTags,
|
||||
&integration.BetulaEnabled,
|
||||
&integration.BetulaURL,
|
||||
&integration.BetulaToken,
|
||||
)
|
||||
switch {
|
||||
case err == sql.ErrNoRows:
|
||||
|
@ -398,9 +404,12 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
|
|||
raindrop_enabled=$85,
|
||||
raindrop_token=$86,
|
||||
raindrop_collection_id=$87,
|
||||
raindrop_tags=$88
|
||||
raindrop_tags=$88,
|
||||
betula_enabled=$89,
|
||||
betula_url=$90,
|
||||
betula_token=$91
|
||||
WHERE
|
||||
user_id=$89
|
||||
user_id=$92
|
||||
`
|
||||
_, err := s.db.Exec(
|
||||
query,
|
||||
|
@ -492,6 +501,9 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
|
|||
integration.RaindropToken,
|
||||
integration.RaindropCollectionID,
|
||||
integration.RaindropTags,
|
||||
integration.BetulaEnabled,
|
||||
integration.BetulaURL,
|
||||
integration.BetulaToken,
|
||||
integration.UserID,
|
||||
)
|
||||
|
||||
|
@ -530,7 +542,8 @@ func (s *Storage) HasSaveEntry(userID int64) (result bool) {
|
|||
shaarli_enabled='t' OR
|
||||
webhook_enabled='t' OR
|
||||
omnivore_enabled='t' OR
|
||||
raindrop_enabled='t'
|
||||
raindrop_enabled='t' OR
|
||||
betula_enabled='t'
|
||||
)
|
||||
`
|
||||
if err := s.db.QueryRow(query, userID).Scan(&result); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue