Session Error
[ Server ] Error:
Invalid
db[getModelName(model)].update()
invocation in
/Users/mkrakel/Projekte/app.legalbot.de/.next/server/chunks/ssr/node_modules_better-auth_dist6657fa..js:7765:62
7762 }
7763 const whereClause = convertWhereClause(model, where);
7764 const transformed = transformInput(update, model, "update");
→ 7765 const result = await db[getModelName(model)].update({
where: {
token: "a1ENZXChPWQAgzS0h2SR0bH9XDHE4ZoL",
? id?: String,
? AND?: SessionWhereInput | SessionWhereInput[],
? OR?: SessionWhereInput[],
? NOT?: SessionWhereInput | SessionWhereInput[],
? expiresAt?: DateTimeFilter | DateTime,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? ipAddress?: StringNullableFilter | String | Null,
? userAgent?: StringNullableFilter | String | Null,
? userId?: StringFilter | String,
? impersonatedBy?: StringNullableFilter | String | Null,
? user?: UserScalarRelationFilter | UserWhereInput
},
data: {
expiresAt: new Date("2025-07-27T13:57:16.265Z")
}
})
Argument where
of type SessionWhereUniqueInput needs at least one of id
arguments. Available options are marked with ?.0 Replies