From 289be569288be1e2d28e0f79f05cd43928d85897 Mon Sep 17 00:00:00 2001 From: piloking <141794311+piloking@users.noreply.github.com> Date: Tue, 31 Dec 2024 17:23:00 +0900 Subject: [PATCH] fix: timeline --- packages/linejs/src/timeline/mod.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/linejs/src/timeline/mod.ts b/packages/linejs/src/timeline/mod.ts index 1ab5e98..d6ab733 100644 --- a/packages/linejs/src/timeline/mod.ts +++ b/packages/linejs/src/timeline/mod.ts @@ -120,7 +120,8 @@ export class Timeline { longitude: number; name: string; }[] = []; - const medias: { objectId: string; type: string; obsFace: string }[] = []; + const medias: { objectId: string; type: string; obsFace: string }[] = + []; stickerIds.forEach((stickerId, stickerIndex) => { stickers.push({ id: stickerId, @@ -171,7 +172,6 @@ export class Timeline { const headers = { ...this.timelineHeaders, "x-lhm": "POST", - "Content-type": "application/json", }; return await this.client.fetch( `https://${this.client.request.endpoint}/${ @@ -190,7 +190,6 @@ export class Timeline { const headers = { ...this.timelineHeaders, "x-lhm": "POST", - "Content-type": "application/json", }; const params = new URLSearchParams({ homeId, @@ -213,7 +212,6 @@ export class Timeline { const headers = { ...this.timelineHeaders, "x-lhm": "GET", - "Content-type": "application/json", }; const params = new URLSearchParams({ homeId, @@ -275,7 +273,6 @@ export class Timeline { const headers = { ...this.timelineHeaders, "x-lhm": "POST", - "Content-type": "application/json", }; return await this.client.fetch( `https://${this.client.request.endpoint}/${