Expected 1 arguments, but got 2.ts(2554)

Anyone know why I'm getting this type error?
await tx
.update(transactionTemplateEntries)
.set({
description: "",
isDefault: false,
amountExpression: expressionId,
templateId: input.templateId,
paymentMethodId: input.paymentMethodId,
accountId: input.accountId,
effectType: input.effectType,
})
.where(eq(transactionTemplateEntries.id, input.id)),
await tx
.update(transactionTemplateEntries)
.set({
description: "",
isDefault: false,
amountExpression: expressionId,
templateId: input.templateId,
paymentMethodId: input.paymentMethodId,
accountId: input.accountId,
effectType: input.effectType,
})
.where(eq(transactionTemplateEntries.id, input.id)),
1 Reply
DYELbrah
DYELbrahOP16mo ago
Nvm was because I accidentally typed this inside an object. Didn't realize.
Want results from more Discord servers?
Add your server