Remove DB connection.

Move to using internal API to check current version.
This commit is contained in:
2026-01-16 22:41:18 +00:00
parent c90163cdce
commit 2cb9c320cf
2 changed files with 2 additions and 67 deletions

View File

@@ -4,7 +4,6 @@ import { processAndStore } from './sss.js'
import { getLatestPackageName, getRequestStream } from './sources/gitea.js'
import { processPisStream } from './process.js'
import { isPackageProcessed } from './database.js'
import { ConfigLoader } from './config.js'
import { sendFileUpdateMessage } from './nats.js'
@@ -26,10 +25,8 @@ async function main() {
process.exit(9);
}
if (await isPackageProcessed(config.Mongo, SERVICE_NAME, packageInfo.name)) {
log('INFO', `Database matches latest release. Exiting`);
process.exit(0);
}
// Check if package already processed HERE...
// exit(0) if done, else continue
const inputStream: Readable = await getRequestStream(packageInfo.assets[0].browser_download_url);
const objectGenerator = processPisStream(config.General, inputStream);