Skip to content

Commit 9eeaad2

Browse files
committed
fix(integration): change collection_id logging to handle nil values for Linkwarden
1 parent 0579ff8 commit 9eeaad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/integration/integration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func SendEntry(entry *model.Entry, userIntegrations *model.Integration) {
275275
slog.Int64("user_id", userIntegrations.UserID),
276276
slog.Int64("entry_id", entry.ID),
277277
slog.String("entry_url", entry.URL),
278-
slog.Int64("collection_id", *userIntegrations.LinkwardenCollectionId),
278+
slog.Any("collection_id", userIntegrations.LinkwardenCollectionId),
279279
)
280280

281281
client := linkwarden.NewClient(
@@ -288,7 +288,7 @@ func SendEntry(entry *model.Entry, userIntegrations *model.Integration) {
288288
slog.Int64("user_id", userIntegrations.UserID),
289289
slog.Int64("entry_id", entry.ID),
290290
slog.String("entry_url", entry.URL),
291-
slog.Int64("collection_id", *userIntegrations.LinkwardenCollectionId),
291+
slog.Any("collection_id", userIntegrations.LinkwardenCollectionId),
292292
slog.Any("error", err),
293293
)
294294
}

0 commit comments

Comments
 (0)