mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
Log Update Info
This commit is contained in:
parent
4c2ea4d362
commit
f138009258
@ -80,6 +80,7 @@ export async function fetchMods(
|
||||
: [];
|
||||
|
||||
if (!requiresUpdate) {
|
||||
console.log("Skipping mod update for", slug);
|
||||
return {
|
||||
...previousMod,
|
||||
alpha: modInfo.alpha,
|
||||
@ -113,6 +114,8 @@ export async function fetchMods(
|
||||
release.assets[0].browser_download_url.endsWith(RELEASE_EXTENSION)
|
||||
);
|
||||
|
||||
console.log("Release list for", slug, " ", releaseList);
|
||||
|
||||
const latestRelease = releaseList[0];
|
||||
|
||||
if (!latestRelease) {
|
||||
|
||||
@ -178,7 +178,7 @@ async function downloadImage(
|
||||
const image = await response.arrayBuffer();
|
||||
await fsp.writeFile(fullImagePath, Buffer.from(image));
|
||||
|
||||
console.log(`Downloaded image from ${imageUrl} to ${fullImagePath}`);
|
||||
//console.log(`Downloaded image from ${imageUrl} to ${fullImagePath}`);
|
||||
return fullImagePath;
|
||||
} catch (error) {
|
||||
console.error(`Failed to download image from url ${imageUrl}: ${error}`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user