forked from trent_larson/crowd-funder-for-time-pwa
fix SQL references to bad "key" -> "id"
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user