Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: console.time is not a function #27

Open
luismartinezs opened this issue Jan 12, 2024 · 0 comments
Open

TypeError: console.time is not a function #27

luismartinezs opened this issue Jan 12, 2024 · 0 comments

Comments

@luismartinezs
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant