From 60db244c66c9d6220b21a75bcd383b3513ff351d Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sat, 14 Jan 2023 09:17:38 -0900 Subject: [PATCH] fix API key storage --- frontend/lib/api/classes/items.ts | 2 +- frontend/lib/api/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/lib/api/classes/items.ts b/frontend/lib/api/classes/items.ts index 14cc491..8522852 100644 --- a/frontend/lib/api/classes/items.ts +++ b/frontend/lib/api/classes/items.ts @@ -76,7 +76,7 @@ export class ItemsApi extends BaseAPI { attachments: AttachmentsAPI; maintenance: MaintenanceAPI; - constructor(http: Requests, token = "") { + constructor(http: Requests, token: string) { super(http, token); this.attachments = new AttachmentsAPI(http); this.maintenance = new MaintenanceAPI(http); diff --git a/frontend/lib/api/user.ts b/frontend/lib/api/user.ts index a64ab98..a0fd413 100644 --- a/frontend/lib/api/user.ts +++ b/frontend/lib/api/user.ts @@ -24,7 +24,7 @@ export class UserClient extends BaseAPI { this.locations = new LocationsApi(requests); this.labels = new LabelsApi(requests); - this.items = new ItemsApi(requests); + this.items = new ItemsApi(requests, attachmentToken); this.group = new GroupApi(requests); this.user = new UserApi(requests); this.actions = new ActionsAPI(requests);