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.go18
1 files changed, 15 insertions, 3 deletions
diff --git a/internal/storage/integration.go b/internal/storage/integration.go
index c68168d0..2c1e85a2 100644
--- a/internal/storage/integration.go
+++ b/internal/storage/integration.go
@@ -167,7 +167,10 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
shiori_password,
shaarli_enabled,
shaarli_url,
- shaarli_api_secret
+ shaarli_api_secret,
+ webhook_enabled,
+ webhook_url,
+ webhook_secret
FROM
integrations
WHERE
@@ -234,6 +237,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
&integration.ShaarliEnabled,
&integration.ShaarliURL,
&integration.ShaarliAPISecret,
+ &integration.WebhookEnabled,
+ &integration.WebhookURL,
+ &integration.WebhookSecret,
)
switch {
case err == sql.ErrNoRows:
@@ -308,9 +314,12 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
shiori_password=$55,
shaarli_enabled=$56,
shaarli_url=$57,
- shaarli_api_secret=$58
+ shaarli_api_secret=$58,
+ webhook_enabled=$59,
+ webhook_url=$60,
+ webhook_secret=$61
WHERE
- user_id=$59
+ user_id=$62
`
_, err := s.db.Exec(
query,
@@ -372,6 +381,9 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
integration.ShaarliEnabled,
integration.ShaarliURL,
integration.ShaarliAPISecret,
+ integration.WebhookEnabled,
+ integration.WebhookURL,
+ integration.WebhookSecret,
integration.UserID,
)
lass='nohover-highlight'> 2023-10-16Move cortex-m crate into cortex-m directoryGravatar Adam Greig 55-307/+113 2023-10-13actions/checkout: 3 -> 4Gravatar Alex Martens 6-11/+11 This is the same thing but updated from nodejs 16 to 20. 2023-08-16Add to docsGravatar Dion Dokter 1-9/+23