mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
[FIX] fix get version by event maybe nil error
This commit is contained in:
parent
47ac6f9351
commit
f94f9af7b9
@ -256,7 +256,11 @@ func (e *exectorManager) appBuild(in []byte) {
|
||||
}
|
||||
func updateBuildResult(eventID,finalStatus,dest string) {
|
||||
if dest == ""||!strings.Contains(dest,"y") {
|
||||
v,_:=db.GetManager().VersionInfoDao().GetVersionByEventID(eventID)
|
||||
v,err:=db.GetManager().VersionInfoDao().GetVersionByEventID(eventID)
|
||||
if err != nil {
|
||||
logrus.Errorf("error get version by eventID %s from db,details %s",eventID,err.Error())
|
||||
return
|
||||
}
|
||||
v.FinalStatus=finalStatus
|
||||
db.GetManager().VersionInfoDao().UpdateModel(v)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user