Skip to content

Commit

Permalink
Update seed.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4z-sys authored Jan 10, 2025
1 parent d9206ef commit 745c0e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exec/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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 = [];

Expand Down

0 comments on commit 745c0e9

Please sign in to comment.