fix(historicalinv): removed the second running one that caused duplicates

This commit is contained in:
2025-11-01 06:54:28 -05:00
parent ebe5c0bd5a
commit a6cc17ccb1
4 changed files with 143 additions and 132 deletions

View File

@@ -48,4 +48,14 @@ export const addListeners = async () => {
} catch (e) {
log.info({}, "label listener exists");
}
try {
log.info({}, "Bad data removing bad history data");
await client.query(`
DELETE FROM public."invHistoricalData"
WHERE upd_user = 'LST'
`);
} catch (e) {
log.info({}, "Error deleting bad inv data");
}
};