Skip to content

Commit

Permalink
fix server header
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Aug 22, 2024
1 parent b98335c commit 8400cc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils/server-api/account/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { unstable_noStore } from 'next/cache'
* @example
* const userData = await getUser()
*/
export async function getUser(): Promise<Models.User<Account.AccountPrefs>> {
export async function getUser(): Promise<Account.AccountPrefs> {
unstable_noStore()
const { account } = await createSessionServerClient()
return await account.get()
Expand Down
4 changes: 1 addition & 3 deletions src/utils/types/models.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { type AppwriteException, Models } from 'node-appwrite'

Check warning on line 1 in src/utils/types/models.ts

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unused import

Unused import specifier type AppwriteException

export namespace Account {
export interface AccountType
extends Models.User<Models.Preferences>,
AppwriteException {}
export interface AccountType extends Models.User<Models.Preferences> {}

/**
* This data is returned from the API by calling their own account data.
Expand Down

0 comments on commit 8400cc1

Please sign in to comment.