From 1da5a340e3625e4437fc4b58bb0b100ebe11564e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Dec 2023 20:09:05 -0500 Subject: [PATCH] fix: generate a random dumber for cid in seed --- prisma/seed.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/seed.mts b/prisma/seed.mts index 033ff18..0beda93 100644 --- a/prisma/seed.mts +++ b/prisma/seed.mts @@ -13,7 +13,7 @@ async function main() { const url = faker.internet.url(); const siteKey = faker.string.alphanumeric(10); - articles.push({title, slug, cid: "", url, siteKey}); + articles.push({title, slug, cid: Math.random().toString(), url, siteKey}); } for (const article of articles) {