fix SQL references to bad "key" -> "id"

This commit is contained in:
2025-06-05 20:11:32 -06:00
parent c5228ba7ec
commit 1d7f626645
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ export default class UserNameDialog extends Vue {
async onClickSaveChanges() { async onClickSaveChanges() {
const platformService = PlatformServiceFactory.getInstance(); const platformService = PlatformServiceFactory.getInstance();
await platformService.dbExec( await platformService.dbExec(
"UPDATE settings SET firstName = ? WHERE key = ?", "UPDATE settings SET firstName = ? WHERE id = ?",
[this.givenName, MASTER_SETTINGS_KEY], [this.givenName, MASTER_SETTINGS_KEY],
); );
if (USE_DEXIE_DB) { if (USE_DEXIE_DB) {

View File

@@ -848,7 +848,7 @@ export default class ContactQRScanShow extends Vue {
if (stopAsking) { if (stopAsking) {
const platformService = PlatformServiceFactory.getInstance(); const platformService = PlatformServiceFactory.getInstance();
await platformService.dbExec( await platformService.dbExec(
"UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE key = ?", "UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE id = ?",
[stopAsking, MASTER_SETTINGS_KEY], [stopAsking, MASTER_SETTINGS_KEY],
); );
if (USE_DEXIE_DB) { if (USE_DEXIE_DB) {
@@ -863,7 +863,7 @@ export default class ContactQRScanShow extends Vue {
if (stopAsking) { if (stopAsking) {
const platformService = PlatformServiceFactory.getInstance(); const platformService = PlatformServiceFactory.getInstance();
await platformService.dbExec( await platformService.dbExec(
"UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE key = ?", "UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE id = ?",
[stopAsking, MASTER_SETTINGS_KEY], [stopAsking, MASTER_SETTINGS_KEY],
); );
if (USE_DEXIE_DB) { if (USE_DEXIE_DB) {