Skip to content

Commit

Permalink
chore: update seed file
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Jun 25, 2024
1 parent d223e35 commit a989b63
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions apps/studio/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ const NAV_BAR_ITEMS = [
]

async function main() {
await db
const { id } = await db
.insertInto('Site')
.values({
id: '1',
name: 'Ministry of Trade and Industry',
config: {
theme: 'isomer-next',
Expand All @@ -66,13 +65,13 @@ async function main() {
isGovernment: true,
} satisfies SiteConfig,
})
.execute()
.returning('id')
.executeTakeFirstOrThrow()

await db
.insertInto('Footer')
.values({
id: '1',
siteId: '1',
siteId: id,
content: {
name: 'A foot',
contactUsLink: '/contact-us',
Expand All @@ -86,8 +85,7 @@ async function main() {
await db
.insertInto('Navbar')
.values({
id: '1',
siteId: '1',
siteId: id,
content: {
name: 'navi',
url: 'www.isomer.gov.sg',
Expand Down

0 comments on commit a989b63

Please sign in to comment.