6 | const user = auth();
7 |
> 8 | if (!user.userId) throw new Error("Unauthorized");
| ^
9 |
10 | const images = await db.query.images.findMany({
11 | where: (model, { eq }) => eq(model.userId, user.userId),
6 | const user = auth();
7 |
> 8 | if (!user.userId) throw new Error("Unauthorized");
| ^
9 |
10 | const images = await db.query.images.findMany({
11 | where: (model, { eq }) => eq(model.userId, user.userId),