From 8d75247ca472fdad9cbe31486916352c5fb1a91e Mon Sep 17 00:00:00 2001 From: floross Date: Thu, 8 Jun 2023 11:28:20 +0200 Subject: [PATCH] fix: add the default value to the prisma schema --- .../prisma/hapify/prisma/schemas/generated.prisma.hpf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/hapify/templates/prisma/hapify/prisma/schemas/generated.prisma.hpf b/libs/hapify/templates/prisma/hapify/prisma/schemas/generated.prisma.hpf index cfec167e2..938984695 100644 --- a/libs/hapify/templates/prisma/hapify/prisma/schemas/generated.prisma.hpf +++ b/libs/hapify/templates/prisma/hapify/prisma/schemas/generated.prisma.hpf @@ -219,13 +219,13 @@ function prismaType(f, m) { case 'date': return out += " @db.Date"; case 'time': return out += " @db.Time(3)"; } - default: return out; } if (f.meta.default) { - out += " @default(" + f.meta.default + ")"; + out += " @default(" + f.meta.default.raw + ")"; } + return out; } >>>