about summary refs log tree commit diff
path: root/src/state/models/content/feed-source.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-04 12:42:27 -0500
committerEric Bailey <git@esb.lol>2023-11-04 12:42:27 -0500
commitdf0dcf32f99631c52b039c7f1934481924d37465 (patch)
treef190c6e24744b01be9a98c4a9e25282bf050a178 /src/state/models/content/feed-source.ts
parent5fd41ad5a2734e1721a82134efe5487e818b790d (diff)
downloadvoidsky-df0dcf32f99631c52b039c7f1934481924d37465.tar.zst
Fix immediate TS errors
Diffstat (limited to 'src/state/models/content/feed-source.ts')
-rw-r--r--src/state/models/content/feed-source.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/state/models/content/feed-source.ts b/src/state/models/content/feed-source.ts
index 8dac9b56f..d1b8fc9dc 100644
--- a/src/state/models/content/feed-source.ts
+++ b/src/state/models/content/feed-source.ts
@@ -134,7 +134,7 @@ export class FeedSourceModel {
     try {
       await this.rootStore.preferences.addSavedFeed(this.uri)
     } catch (error) {
-      this.rootStore.log.error('Failed to save feed', error)
+      this.rootStore.log.error('Failed to save feed', {error})
     } finally {
       track('CustomFeed:Save')
     }
@@ -147,7 +147,7 @@ export class FeedSourceModel {
     try {
       await this.rootStore.preferences.removeSavedFeed(this.uri)
     } catch (error) {
-      this.rootStore.log.error('Failed to unsave feed', error)
+      this.rootStore.log.error('Failed to unsave feed', {error})
     } finally {
       track('CustomFeed:Unsave')
     }
@@ -157,7 +157,7 @@ export class FeedSourceModel {
     try {
       await this.rootStore.preferences.addPinnedFeed(this.uri)
     } catch (error) {
-      this.rootStore.log.error('Failed to pin feed', error)
+      this.rootStore.log.error('Failed to pin feed', {error})
     } finally {
       track('CustomFeed:Pin', {
         name: this.displayName,
@@ -194,7 +194,7 @@ export class FeedSourceModel {
     } catch (e: any) {
       this.likeUri = undefined
       this.likeCount = (this.likeCount || 1) - 1
-      this.rootStore.log.error('Failed to like feed', e)
+      this.rootStore.log.error('Failed to like feed', {error: e})
     } finally {
       track('CustomFeed:Like')
     }
@@ -215,7 +215,7 @@ export class FeedSourceModel {
     } catch (e: any) {
       this.likeUri = uri
       this.likeCount = (this.likeCount || 0) + 1
-      this.rootStore.log.error('Failed to unlike feed', e)
+      this.rootStore.log.error('Failed to unlike feed', {error: e})
     } finally {
       track('CustomFeed:Unlike')
     }