fix(historicalinv): removed the second running one that caused duplicates
This commit is contained in:
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user