mirror of
https://github.com/haorendashu/nowser.git
synced 2026-01-06 19:04:23 +01:00
delete remotesigninginfo when app was deleted
This commit is contained in:
@@ -122,6 +122,14 @@ class AppProvider extends ChangeNotifier {
|
||||
Future<void> deleteApp(App app) async {
|
||||
await AppDB.delete(app.id!);
|
||||
|
||||
if (app.appType == AppType.REMOTE) {
|
||||
try {
|
||||
RemoteSigningInfoDB.deleteByAppId(app.id!);
|
||||
} catch (e) {
|
||||
print(e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
await AuthLogDB.deleteByAppId(app.id!);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user