fix: generate a random dumber for cid in seed

This commit is contained in:
Derrick Hammer 2023-12-11 20:09:05 -05:00
parent bc2cacf204
commit 1da5a340e3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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) {