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
commit af308b99a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)