aboutsummaryrefslogtreecommitdiff
path: root/internal/storage/integration.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/storage/integration.go')
-rw-r--r--internal/storage/integration.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/storage/integration.go b/internal/storage/integration.go
index 56bcea4b..54e4f7a4 100644
--- a/internal/storage/integration.go
+++ b/internal/storage/integration.go
@@ -174,7 +174,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
shaarli_api_secret,
webhook_enabled,
webhook_url,
- webhook_secret
+ webhook_secret,
+ rssbridge_enabled,
+ rssbridge_url
FROM
integrations
WHERE
@@ -248,6 +250,8 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
&integration.WebhookEnabled,
&integration.WebhookURL,
&integration.WebhookSecret,
+ &integration.RSSBridgeEnabled,
+ &integration.RSSBridgeURL,
)
switch {
case err == sql.ErrNoRows:
@@ -329,9 +333,11 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
shaarli_api_secret=$62,
webhook_enabled=$63,
webhook_url=$64,
- webhook_secret=$65
+ webhook_secret=$65,
+ rssbridge_enabled=$66,
+ rssbridge_url=$67
WHERE
- user_id=$66
+ user_id=$68
`
_, err := s.db.Exec(
query,
@@ -400,6 +406,8 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
integration.WebhookEnabled,
integration.WebhookURL,
integration.WebhookSecret,
+ integration.RSSBridgeEnabled,
+ integration.RSSBridgeURL,
integration.UserID,
)