Skip to content

Commit

Permalink
async
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie committed Nov 8, 2024
1 parent 41e5530 commit 75a754a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/nextjs/src/app/server-actions/accounts/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { auth } from "@clerk/nextjs/server";
import type { paths } from "~/lib/api/openapi-v1";
import { BattleStadiumApiClient, defaultConfig } from "~/lib/api";

export function getAccounts(options?: FetchOptions<paths["/accounts"]["get"]>) {
export async function getAccounts (options?: FetchOptions<paths["/accounts"]["get"]>) {
const usersOptions = {
...defaultConfig("listUsers"),
...options,
Expand All @@ -16,7 +16,7 @@ export function getAccounts(options?: FetchOptions<paths["/accounts"]["get"]>) {
return BattleStadiumApiClient(skipClerkAuth).GET("/accounts", usersOptions);
}

export function getAccount(
export async function getAccount (
username: string,
options?: FetchOptions<paths["/accounts/{username}"]["get"]>,
) {
Expand All @@ -29,7 +29,7 @@ export function getAccount(
return BattleStadiumApiClient().GET("/accounts/{username}", userOptions);
}

export async function getAccountMe(
export async function getAccountMe (
options?: FetchOptions<paths["/accounts/me"]["get"]>,
) {
const { userId } = await auth();
Expand Down

0 comments on commit 75a754a

Please sign in to comment.