mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 15:26:41 +00:00
remove lucia
This commit is contained in:
@@ -21,7 +21,7 @@ export async function getUser(
|
||||
next: NextFunction,
|
||||
): Promise<any> {
|
||||
try {
|
||||
const userId = req.user?.id;
|
||||
const userId = req.user?.userId;
|
||||
|
||||
if (!userId) {
|
||||
return next(
|
||||
@@ -32,7 +32,7 @@ export async function getUser(
|
||||
const user = await db
|
||||
.select()
|
||||
.from(users)
|
||||
.where(eq(users.id, userId))
|
||||
.where(eq(users.userId, userId))
|
||||
.limit(1);
|
||||
|
||||
if (user.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user