From 745c0e95c4a281bef534f511c2b84f268424bfd0 Mon Sep 17 00:00:00 2001 From: "ma4z (alt)" <166227780+ma4z-sys@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:21:30 +0500 Subject: [PATCH] Update seed.js --- exec/seed.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exec/seed.js b/exec/seed.js index 9874eb5..20a524f 100644 --- a/exec/seed.js +++ b/exec/seed.js @@ -11,10 +11,8 @@ const rl = readline.createInterface({ output: process.stdout }); -// https://i.imgu async function seed() { try { - // First check if there are any images already in the database const existingImages = await db.get('images'); if (existingImages && existingImages.length > 0) { rl.question('\'images\' is already set in the database. Do you want to continue seeding? (y/n) ', async (answer) => { @@ -40,7 +38,7 @@ async function seed() { // r.com/uNob async function performSeeding() { try { - const imagesIndexResponse = await axios.get('https://raw.githubusercontent.com/hydren-dev/images_v2/refs/heads/main/seed/0.1.0-beta2.json'); + const imagesIndexResponse = await axios.get('https://raw.githubusercontent.com/ma4z-sys/images_v2/refs/heads/main/seed/0.1.0-beta2.json'); const imageUrls = imagesIndexResponse.data; let imageDataArray = [];