sync delete app table record when delete app (#5819)

This commit is contained in:
Jyong
2024-07-02 08:48:29 +08:00
committed by GitHub
parent 49d9c60a53
commit af308b99a3
2 changed files with 24 additions and 19 deletions

View File

@@ -394,6 +394,8 @@ class AppService:
Delete app
:param app: App instance
"""
db.session.delete(app)
db.session.commit()
# Trigger asynchronous deletion of app and related data
remove_app_and_related_data_task.delay(app.id)