fixed bugs introduced by switching from titles as ids to separate ids

This commit is contained in:
2025-09-12 00:59:19 +02:00
parent 667052e3c4
commit f13da92b48
6 changed files with 14 additions and 12 deletions

View File

@@ -256,6 +256,7 @@ CREATE TABLE IF NOT EXISTS "{0}" (
public void updateId(String module, Object oldId, Object newId) {
try {
update(TABLE_NOTES).set(ENTITY_ID).where(MODULE,equal(module)).where(ENTITY_ID,equal(oldId)).prepare(db).apply(newId).close();
LOG.log(DEBUG,"Updated note @ {0}.{1} → {0}.{2}",module,oldId,newId);
} catch (SQLException e) {
throw databaseException("Failed to update {0}.{1} → {0}.{2}",module,oldId,newId);
}