Skip to content

Commit

Permalink
🧐 Improve inspectUser script
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jan 12, 2024
1 parent 409aeb1 commit 1f5559f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/scripts/inspectUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const inspectUser = async () => {
id: true,
name: true,
plan: true,
isVerified: true,
members: {
where: {
user: { email: { not: email } },
Expand Down
14 changes: 4 additions & 10 deletions packages/scripts/updateTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@ import * as p from '@clack/prompts'
const updateTypebot = async () => {
await promptAndSetEnvironment('production')

const prisma = new PrismaClient({
log: [{ emit: 'event', level: 'query' }, 'info', 'warn', 'error'],
})
const prisma = new PrismaClient()

prisma.$on('query', (e) => {
console.log(e.query)
console.log(e.params)
console.log(e.duration, 'ms')
const typebotId = await p.text({
message: 'Typebot ID?',
})

const typebotId = (await p.text({
message: 'Typebot ID?',
})) as string
if (!typebotId || p.isCancel(typebotId)) process.exit()

const typebot = await prisma.typebot.update({
where: {
Expand Down

2 comments on commit 1f5559f

@vercel
Copy link

@vercel vercel bot commented on 1f5559f Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1f5559f Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

landing-page-v2 – ./apps/landing-page

landing-page-v2-git-main-typebot-io.vercel.app
landing-page-v2-typebot-io.vercel.app
home.typebot.io

Please sign in to comment.