Changeset View
Changeset View
Standalone View
Standalone View
native/data/sqlite-data-handler.js
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | async (triggeredBy: string) => { | ||||
} | } | ||||
await commCoreModule.clearSensitiveData(); | await commCoreModule.clearSensitiveData(); | ||||
if (staffCanSee || staffUserHasBeenLoggedIn) { | if (staffCanSee || staffUserHasBeenLoggedIn) { | ||||
Alert.alert( | Alert.alert( | ||||
'SQLite database successfully deleted', | 'SQLite database successfully deleted', | ||||
`SQLite database deletion was triggered by ${triggeredBy}`, | `SQLite database deletion was triggered by ${triggeredBy}`, | ||||
); | ); | ||||
} | } | ||||
Alert.alert(new Date().toISOString()); | |||||
const foo = commCoreModule.get42(); | |||||
const bar = commCoreModule.get42(); | |||||
Alert.alert(new Date().toISOString()); | |||||
const x = await foo; | |||||
Alert.alert(new Date().toISOString()); | |||||
if (x) { | |||||
Alert.alert('Got back ' + x); | |||||
} | |||||
const y = await bar; | |||||
Alert.alert(new Date().toISOString()); | |||||
if (y) { | |||||
Alert.alert('Got back' + y); | |||||
} | |||||
}, | }, | ||||
[staffCanSee, staffUserHasBeenLoggedIn], | [staffCanSee, staffUserHasBeenLoggedIn], | ||||
); | ); | ||||
const handleSensitiveData = React.useCallback(async () => { | const handleSensitiveData = React.useCallback(async () => { | ||||
try { | try { | ||||
const databaseCurrentUserInfoID = await commCoreModule.getCurrentUserID(); | const databaseCurrentUserInfoID = await commCoreModule.getCurrentUserID(); | ||||
if ( | if ( | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |