test
This commit is contained in:
26
component/test2.ts
Normal file
26
component/test2.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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();
|
||||
// },
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user