fix: generate a random dumber for cid in seed
This commit is contained in:
parent
bc2cacf204
commit
1da5a340e3
|
@ -13,7 +13,7 @@ async function main() {
|
||||||
const url = faker.internet.url();
|
const url = faker.internet.url();
|
||||||
const siteKey = faker.string.alphanumeric(10);
|
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) {
|
for (const article of articles) {
|
||||||
|
|
Loading…
Reference in New Issue