app set is_saved=True when it has the version

This commit is contained in:
2024-12-23 23:24:57 +09:00
parent 8996a4c836
commit 57af07ba73

View File

@@ -200,7 +200,7 @@ class dbapp(crudbase):
db_flow.updateuserid = userid
db.add(db_flow)
db_app = self.get_app(db, domainurl, flow.appid)
if db_app:
if db_app and db_app.version > 0:
db_app.is_saved = True
db.add(db_app)
db.commit()