mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 15:05:22 +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 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([
|
||||
// create testing auth user
|
||||
|
@ -74,9 +122,7 @@ async function main() {
|
|||
firstName: 'Karan',
|
||||
lastName: 'Handa',
|
||||
authId: 'test_f5ec79b4-8c49-4015-bc37-f2758923ef38',
|
||||
onboarding: JSON.parse(
|
||||
'{"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}}'
|
||||
),
|
||||
onboarding: JSON.stringify(onboarding),
|
||||
household: 'single',
|
||||
country: 'US',
|
||||
maybe: 'Test',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue