export const updateAnimalVaccineList = mutationWithTriggers({
handler: async (ctx, args) => {
return await ctx.db.patch("n571fm2daz2w33w1mjqjbz812d7ts71p" as Id<"vaccines">, {
expirationDate: "2028-07-25",
name: "Slovenian Chia Seeds Soup",
})
// return await Promise.all(
// [
// {
// expirationDate: "2028-07-25",
// id: "n571fm2daz2w33w1mjqjbz812d7ts71p",
// name: "Slovenian Chia Seeds Soup",
// },
// ].map(({ id, ...rest }) => {
// return ctx.db.patch(id as Id<"vaccines">, rest)
// }),
// )
},
})
export const updateAnimalVaccineList = mutationWithTriggers({
handler: async (ctx, args) => {
return await ctx.db.patch("n571fm2daz2w33w1mjqjbz812d7ts71p" as Id<"vaccines">, {
expirationDate: "2028-07-25",
name: "Slovenian Chia Seeds Soup",
})
// return await Promise.all(
// [
// {
// expirationDate: "2028-07-25",
// id: "n571fm2daz2w33w1mjqjbz812d7ts71p",
// name: "Slovenian Chia Seeds Soup",
// },
// ].map(({ id, ...rest }) => {
// return ctx.db.patch(id as Id<"vaccines">, rest)
// }),
// )
},
})