about summary refs log tree commit diff
path: root/src/lib/api/index.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/lib/api/index.ts
parent5fd41ad5a2734e1721a82134efe5487e818b790d (diff)
downloadvoidsky-df0dcf32f99631c52b039c7f1934481924d37465.tar.zst
Fix immediate TS errors
Diffstat (limited to 'src/lib/api/index.ts')
-rw-r--r--src/lib/api/index.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts
index f930bd7b1..f75ebbd96 100644
--- a/src/lib/api/index.ts
+++ b/src/lib/api/index.ts
@@ -178,10 +178,9 @@ export async function post(store: RootStoreModel, opts: PostOpts) {
         ) {
           encoding = 'image/jpeg'
         } else {
-          store.log.warn(
-            'Unexpected image format for thumbnail, skipping',
-            opts.extLink.localThumb.path,
-          )
+          store.log.warn('Unexpected image format for thumbnail, skipping', {
+            thumbnail: opts.extLink.localThumb.path,
+          })
         }
         if (encoding) {
           const thumbUploadRes = await uploadBlob(