Files
test-convex/component/test2.ts
2026-01-25 19:18:59 +08:00

27 lines
793 B
TypeScript

// import { query, mutation, action } from "./_generated/server";
// import { v } from "convex/values";
// export const get = query({
// args: {},
// handler: async (ctx) => {
// const auth = await ctx.auth.getUserIdentity();
// console.log("Query test2 called, auth:", auth);
// if (auth) {
// console.log("Authenticated user ID:", auth.subject);
// }
// return await ctx.db.query("test2").collect();
// },
// });
// export const get2 = query({
// args: {},
// handler: async (ctx) => {
// const auth = await ctx.auth.getUserIdentity();
// console.log("Query test2 called, auth:", auth);
// if (auth) {
// console.log("Authenticated user ID:", auth.subject);
// }
// return await ctx.db.query("test2").collect();
// },
// });