Skip to content

seedTemplates

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/template/seeds/seed-templates.ts

Seeds all document templates into the database.

This function creates or updates all predefined templates. Templates are marked as public and system-created.

Signature

ts
async function seedTemplates(prisma: PrismaClient, systemUserId: string): Promise<void>

Parameters

NameType
prismaPrismaClient
systemUserIdstring

Returns: Promise<void>

Was this page helpful?

Download as PDF