bugfix update_appversion
This commit is contained in:
@@ -111,9 +111,8 @@ class dbapp(crudbase):
|
||||
db.add(appversion)
|
||||
db.add(db_app)
|
||||
|
||||
flow = dbflow.get_flows_by_appid(db,domainurl,newversion.appid)
|
||||
if not flow:
|
||||
return None
|
||||
flows = dbflow.get_flows_by_appid(db,domainurl,newversion.appid)
|
||||
for flow in flows:
|
||||
db_flowhistory = models.FlowHistory(
|
||||
flowid = flow.flowid,
|
||||
appid = flow.appid,
|
||||
@@ -126,6 +125,7 @@ class dbapp(crudbase):
|
||||
createuserid = userid
|
||||
)
|
||||
db.add(db_flowhistory)
|
||||
db.add(db_flowhistory)
|
||||
db.commit()
|
||||
db.refresh(db_app)
|
||||
return db_app
|
||||
|
||||
Reference in New Issue
Block a user