example-invoice
example-invoice copied to clipboard
Seed.js not working properly
The Invoice service relies on "context.currentUser?.id" to create an Invoice, which doesn't work running "yarn rw db seed"
Seems tricky to establish user context within the seed.js file, so I was trying to seed a user first and providing that but couldn't get it to work.
Still learning the ins and outs of Prisma and Redwood and don't totally understand the input types it asks for while creating the Invoice while providing a User but it seems possible
Hi @matthalvorson33! I'm not sure if the Seed step is even needed anymore. See https://github.com/redwoodjs/example-invoice/issues/35
@peterp is the original author here. Peter, could you help clarify? Also see relate PR https://github.com/redwoodjs/example-invoice/pull/50
Thanks for pointing me there, I hadn't seen that yet. Appreciate the help :)