master
cheetah 2 years ago
parent 06c2ede537
commit d64c114001

@ -515,10 +515,6 @@ func ProcessGMA(filePath string) (err error) {
uploadSuccess = false uploadSuccess = false
} else { } else {
log.Println("oopsie") log.Println("oopsie")
// remove fileObject
if !dboExistFile[dboFile.ID] {
_, _ = colFile.RemoveDocument(arangoCTX, dboFile.ID)
}
undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs) undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs)
return err return err
} }
@ -529,10 +525,6 @@ func ProcessGMA(filePath string) (err error) {
if err != nil { if err != nil {
log.Println("err @colGMA2File.DocumentExists") log.Println("err @colGMA2File.DocumentExists")
log.Println("oopsie") 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) undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs)
return err return err
} }
@ -541,10 +533,6 @@ func ProcessGMA(filePath string) (err error) {
if err != nil { if err != nil {
log.Println("err @colGMA2File.CreateDocument") log.Println("err @colGMA2File.CreateDocument")
log.Println("oopsie") 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) undoBatch(true, dboGMA.ID, fileIDs, gma2FileIDs)
return err return err
} }

Loading…
Cancel
Save