this
createIPCHandler
electron-trpc
const create = t.procedure.input(brandFormSchema).mutation(async (req) => { try { console.log('=== running create brand mutation') const { input: brandFormValues } = req const em = orm.em.fork() await em.persistAndFlush(em.create(Brand, brandFormValues)) // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { createErrorLog(err.message, 'Create brand.') throw err }})
superjson