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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user