From 25e553d1030f83278b5cbb7a8cbe0f3d8b2b9df3 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 5 Mar 2025 00:22:57 +0000 Subject: [PATCH] remove unused async --- packages/client/src/services/api.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/src/services/api.ts b/packages/client/src/services/api.ts index 910eee3..d29bddb 100644 --- a/packages/client/src/services/api.ts +++ b/packages/client/src/services/api.ts @@ -10,11 +10,11 @@ class StatusphereAgent extends Lexicon.AtpBaseClient { super(StatusphereAgent.fetchHandler) } - private static fetchHandler: Lexicon.AtpBaseClient['fetchHandler'] = async ( + private static fetchHandler: Lexicon.AtpBaseClient['fetchHandler'] = ( path, options, ) => { - return await fetch(path, { + return fetch(path, { ...options, headers: { 'Content-Type': 'application/json', @@ -62,17 +62,17 @@ export const api = { }, // Get current user - async getCurrentUser(params: XyzStatusphereGetUser.QueryParams) { + getCurrentUser(params: XyzStatusphereGetUser.QueryParams) { return agent.xyz.statusphere.getUser(params) }, // Get statuses - async getStatuses(params: XyzStatusphereGetStatuses.QueryParams) { + getStatuses(params: XyzStatusphereGetStatuses.QueryParams) { return agent.xyz.statusphere.getStatuses(params) }, // Create status - async createStatus(params: XyzStatusphereSendStatus.InputSchema) { + createStatus(params: XyzStatusphereSendStatus.InputSchema) { return agent.xyz.statusphere.sendStatus(params) }, } -- 2.51.2