DT
Drizzle Teamβ€’2y ago
Cory

Type error for eq()

I get Expected 1 arguments, but got 2. in a statement like this:
.where(and(eq(menu.id, form.data.id)), eq(menu.userId, session.userId));
.where(and(eq(menu.id, form.data.id)), eq(menu.userId, session.userId));
3 Replies
Cory
CoryOPβ€’2y ago
for 'eq'
rphlmr ⚑
rphlmr βš‘β€’2y ago
your 2 β€œeq” should be in the β€œand” parentheses πŸ˜‰
volks
volksβ€’2y ago
Good catch, you're getting the expected 1 argument but got 2 for the .where
Want results from more Discord servers?
Add your server