-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
calling console.time errors out when used in the convex backend, example:
export const list = query({
args: {},
handler: async (ctx) => {
console.time("list query time");
const { tokenIdentifier } = await authGuard(ctx)
const ideas = await ctx.db.query("ideas")
.filter((q) => q.eq(q.field("userId"), tokenIdentifier))
.order("desc")
.collect();
console.timeEnd("list query time");
return ideas
},
});Logs:
1/13/2024, 6:53:29 AM
40ms
failure
Query
ideas:list
failure
Uncaught TypeError: console.time is not a function
at handler (../convex/ideas.ts:106:12)
Metadata
Metadata
Assignees
Labels
No labels