2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-10-29 12:37:37 +00:00

Sentry fix (#395)

* Extra sentry diagnostics

* Fix unit test

* Unit test updates

* More unit test updates
This commit is contained in:
Oliver
2023-07-07 21:38:04 +10:00
committed by GitHub
parent 6fe23fa846
commit 2babf27db5
6 changed files with 19 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ class UserProfileDBManager {
if (exists) {
debug("addProfile() : UserProfile '${profile.name}' already exists");
return false;
return true;
} else {
debug("Adding new profile: '${profile.name}'");
}
@@ -137,6 +137,8 @@ class UserProfileDBManager {
* Remove a user profile from the database
*/
Future<void> deleteProfile(UserProfile profile) async {
debug("deleteProfile: ${profile.name}");
await store.record(profile.key).delete(await _db);
}