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);