Resolve bugs tied to record creations on table (#4011)

* Resolve bugs tied to record creations on table

* Fix according to PR

* Fix tests
This commit is contained in:
Charles Bochet
2024-02-16 15:03:57 +01:00
committed by GitHub
parent 595b2f9e6f
commit 6f2b0f2068
8 changed files with 71 additions and 76 deletions

View File

@ -12,6 +12,7 @@ export const companyPrefillData = async (
'domainName',
'address',
'employees',
'position',
])
.orIgnore()
.values([
@ -20,30 +21,35 @@ export const companyPrefillData = async (
domainName: 'airbnb.com',
address: 'San Francisco',
employees: 5000,
position: 1,
},
{
name: 'Qonto',
domainName: 'qonto.com',
address: 'San Francisco',
employees: 800,
position: 2,
},
{
name: 'Stripe',
domainName: 'stripe.com',
address: 'San Francisco',
employees: 8000,
position: 3,
},
{
name: 'Figma',
domainName: 'figma.com',
address: 'San Francisco',
employees: 800,
position: 4,
},
{
name: 'Notion',
domainName: 'notion.com',
address: 'San Francisco',
employees: 400,
position: 5,
},
])
.returning('*')