fix linting

This commit is contained in:
2025-05-30 21:12:41 -06:00
parent 900c2521c7
commit 644593a5f4

View File

@@ -842,11 +842,9 @@ export default class ContactQRScanShow extends Vue {
text: "Do you want to register them?", text: "Do you want to register them?",
onCancel: async (stopAsking?: boolean) => { onCancel: async (stopAsking?: boolean) => {
if (stopAsking) { if (stopAsking) {
const platformService = PlatformServiceFactory.getInstance(); await databaseUtil.updateAccountSettings(this.activeDid, {
await platformService.dbExec( hideRegisterPromptOnNewContact: stopAsking,
"UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE key = ?", });
[stopAsking, MASTER_SETTINGS_KEY],
);
if (USE_DEXIE_DB) { if (USE_DEXIE_DB) {
await db.settings.update(MASTER_SETTINGS_KEY, { await db.settings.update(MASTER_SETTINGS_KEY, {
hideRegisterPromptOnNewContact: stopAsking, hideRegisterPromptOnNewContact: stopAsking,
@@ -857,11 +855,9 @@ export default class ContactQRScanShow extends Vue {
}, },
onNo: async (stopAsking?: boolean) => { onNo: async (stopAsking?: boolean) => {
if (stopAsking) { if (stopAsking) {
const platformService = PlatformServiceFactory.getInstance(); await databaseUtil.updateAccountSettings(this.activeDid, {
await platformService.dbExec( hideRegisterPromptOnNewContact: stopAsking,
"UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE key = ?", });
[stopAsking, MASTER_SETTINGS_KEY],
);
if (USE_DEXIE_DB) { if (USE_DEXIE_DB) {
await db.settings.update(MASTER_SETTINGS_KEY, { await db.settings.update(MASTER_SETTINGS_KEY, {
hideRegisterPromptOnNewContact: stopAsking, hideRegisterPromptOnNewContact: stopAsking,