bugfix change_appversion

This commit is contained in:
2024-12-10 21:33:00 +09:00
parent 7b0b77dcb3
commit b928f2f3ef
2 changed files with 5 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ class dbflow(crudbase):
return None
def get_flow_by_flowid(self,db: Session,flowid:str):
return db.execute(super().get_by_conditions({"flowid":flowid})).scalars().all()
return db.execute(super().get_by_conditions({"flowid":flowid})).scalars().first()
def get_flows_by_appid(self,db: Session,domainurl:str,appid:str):
return db.execute(select(models.Flow).filter(and_(models.Flow.domainurl == domainurl,models.Flow.appid == appid))).scalars().all()
@@ -155,7 +155,6 @@ class dbapp(crudbase):
domainurl = flow.domainurl,
name = flow.name,
content = flow.content,
version = db_app.version,
updateuserid = userid,
createuserid = userid
)