Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Jan 29, 2024
1 parent 716b714 commit a9e9f87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion waspc/data/Generator/templates/sdk/auth/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Request as ExpressRequest } from "express";

import { type {= userEntityUpper =} } from "wasp/entities"
import { type AuthUser } from 'wasp/server/_types'
import { type AuthUser } from 'wasp/auth'

import { auth } from "./lucia.js";
import type { Session } from "lucia";
Expand Down
2 changes: 1 addition & 1 deletion waspc/data/Generator/templates/sdk/auth/types.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// todo(filip): turn into a proper import/path
export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types/'
export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// todo(filip): turn into a proper import/path
export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types/'
export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types'
4 changes: 2 additions & 2 deletions waspc/examples/todo-typescript/src/Todo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { mockServer, renderInContext } from 'wasp/test'
import { getTasks } from 'wasp/rpc/queries'
import { Todo, areThereAnyTasks } from './Todo'
import { MainPage } from './MainPage'
import type { User } from 'wasp/auth/types'
import type { AuthUser } from 'wasp/auth'
import { getMe } from 'wasp/auth/useAuth'
import { Tasks } from 'wasp/crud/Tasks'

Expand Down Expand Up @@ -54,7 +54,7 @@ const mockUser = {
],
},
address: '',
} satisfies User
} satisfies AuthUser

test('handles mock data', async () => {
mockQuery(getTasks, mockTasks)
Expand Down

0 comments on commit a9e9f87

Please sign in to comment.