mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
separate json
This commit is contained in:
parent
b8df5c1074
commit
94aa45419d
1 changed files with 49 additions and 3 deletions
|
@ -36,6 +36,54 @@ async function main() {
|
||||||
]
|
]
|
||||||
|
|
||||||
const hashedPassword = await bcrypt.hash('TestPassword123', 10)
|
const hashedPassword = await bcrypt.hash('TestPassword123', 10)
|
||||||
|
const onboarding = {
|
||||||
|
main: {
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
key: 'intro',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'profile',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'firstAccount',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'accountSelection',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'maybe',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'welcome',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
markedComplete: false,
|
||||||
|
},
|
||||||
|
sidebar: {
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
key: 'connect-depository',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'add-vehicle',
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'add-other',
|
||||||
|
markedComplete: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
markedComplete: true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
await prisma.$transaction([
|
await prisma.$transaction([
|
||||||
// create testing auth user
|
// create testing auth user
|
||||||
|
@ -74,9 +122,7 @@ async function main() {
|
||||||
firstName: 'Karan',
|
firstName: 'Karan',
|
||||||
lastName: 'Handa',
|
lastName: 'Handa',
|
||||||
authId: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38',
|
authId: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38',
|
||||||
onboarding: JSON.parse(
|
onboarding: JSON.stringify(onboarding),
|
||||||
'{"main":{"steps":[{"key":"intro","markedComplete":true},{"key":"profile","markedComplete":true},{"key":"firstAccount","markedComplete":true},{"key":"accountSelection","markedComplete":true},{"key":"maybe","markedComplete":true},{"key":"welcome","markedComplete":true}],"markedComplete":false},"sidebar":{"steps":[{"key":"connect-depository","markedComplete":true},{"key":"add-vehicle","markedComplete":true},{"key":"add-other","markedComplete":false}],"markedComplete":true}}'
|
|
||||||
),
|
|
||||||
household: 'single',
|
household: 'single',
|
||||||
country: 'US',
|
country: 'US',
|
||||||
maybe: 'Test',
|
maybe: 'Test',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue