master
cheetah 2 years ago
parent 06c2ede537
commit d64c114001

@ -515,10 +515,6 @@ func ProcessGMA(filePath string) (err error) {
uploadSuccess = false
} else {
log.Println("oopsie")
// remove fileObject
if !dboExistFile[dboFile.ID] {
_, _ = colFile.RemoveDocument(arangoCTX, dboFile.ID)
}
undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs)
return err
}
@ -529,10 +525,6 @@ func ProcessGMA(filePath string) (err error) {
if err != nil {
log.Println("err @colGMA2File.DocumentExists")
log.Println("oopsie")
// remove fileObject
/*if !dboExistFile[dboFile.ID] { // if the file did not exist prior to this
_, _ = colFile.RemoveDocument(arangoCTX, dboFile.ID)
}*/
undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs)
return err
}
@ -541,10 +533,6 @@ func ProcessGMA(filePath string) (err error) {
if err != nil {
log.Println("err @colGMA2File.CreateDocument")
log.Println("oopsie")
// remove fileObject
/*if !dboExistFile[dboFile.ID] { // if the file did not exist prior to this
_, _ = colFile.RemoveDocument(arangoCTX, dboFile.ID)
}*/
undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs)
return err
}

Loading…
Cancel
Save