chore(ingest): finish public query history cleanup

This commit is contained in:
Andrey Avtomonov 2026-05-13 19:24:18 +02:00
parent 16543a68f2
commit f34b225a6f
3 changed files with 15 additions and 8 deletions

View file

@ -852,7 +852,13 @@ async function maybeApplyHistoricSqlConfig(input: {
],
});
if (choice === 'back') return 'back';
enabled = choice === 'yes';
if (choice === 'yes') {
enabled = true;
} else if (choice === 'no') {
enabled = false;
} else {
return input.connection;
}
}
const existingRecord = queryHistoryConfigRecord(input.connection) ?? historicSqlConfigRecord(input.connection) ?? {};