From d64c114001cd8975b38abcea26f818f01b1445e8 Mon Sep 17 00:00:00 2001 From: cheetah Date: Sat, 1 Jul 2023 12:21:45 -0500 Subject: [PATCH] blargh --- main.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/main.go b/main.go index 83879a9..a9ff783 100644 --- a/main.go +++ b/main.go @@ -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 }