account settings actions, account deletion left
This commit is contained in:
@ -9,7 +9,7 @@ import authenticator from "./authenticator.server";
|
||||
import { AuthenticationError } from "./errors";
|
||||
import { commitSession, destroySession, getSession } from "./session.server";
|
||||
|
||||
export type SessionOrganization = Pick<Organization, "name" | "id"> & { role: MembershipRole };
|
||||
export type SessionOrganization = Pick<Organization, "id"> & { role: MembershipRole };
|
||||
export type SessionUser = Omit<User, "hashedPassword"> & {
|
||||
organizations: SessionOrganization[];
|
||||
};
|
||||
@ -38,7 +38,7 @@ export async function login({ form }: FormStrategyVerifyParams): Promise<Session
|
||||
memberships: {
|
||||
select: {
|
||||
organization: {
|
||||
select: { name: true, id: true },
|
||||
select: { id: true },
|
||||
},
|
||||
role: true,
|
||||
},
|
||||
@ -150,7 +150,7 @@ export async function refreshSessionData(request: Request) {
|
||||
memberships: {
|
||||
select: {
|
||||
organization: {
|
||||
select: { name: true, id: true },
|
||||
select: { id: true },
|
||||
},
|
||||
role: true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user