No overload matches
I'm using drizzle and getting the an overload error. Is this the correct way of passing data to the insert function?:
const { category, price, title, brand, model, description, images, location, meetup } = MintValidator.parse(body)
const post = await db.insert(listingsGeneral).values({ authorId: authorId, createdAt: formattedCurrentDate, expirationDate: formattedExpirationDate, purgeDate: formattedPurgeDate, category: category, price: price, title: title, brand: brand, model: model, description: description, images: 'imageURL', location: location, meetup: meetup, isAvailable: true, })
const post = await db.insert(listingsGeneral).values({ authorId: authorId, createdAt: formattedCurrentDate, expirationDate: formattedExpirationDate, purgeDate: formattedPurgeDate, category: category, price: price, title: title, brand: brand, model: model, description: description, images: 'imageURL', location: location, meetup: meetup, isAvailable: true, })
0 Replies