diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-14 11:57:38 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-14 11:57:38 +0300 |
| commit | cd6f9257df060e5cee82429f419813170fa3401c (patch) | |
| tree | 0906a603aae83b612c2367aab0547853c4976da8 /backend | |
| parent | upload record fix, download demo success (#24) (diff) | |
| download | lphub-cd6f9257df060e5cee82429f419813170fa3401c.tar.gz lphub-cd6f9257df060e5cee82429f419813170fa3401c.tar.bz2 lphub-cd6f9257df060e5cee82429f419813170fa3401c.zip | |
delete demo after serving it from local (#24)
Diffstat (limited to '')
| -rw-r--r-- | backend/controllers/recordController.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go index 50db168..c60827a 100644 --- a/backend/controllers/recordController.go +++ b/backend/controllers/recordController.go | |||
| @@ -167,6 +167,7 @@ func DownloadDemoWithID(c *gin.Context) { | |||
| 167 | url := "https://drive.google.com/uc?export=download&id=" + locationID | 167 | url := "https://drive.google.com/uc?export=download&id=" + locationID |
| 168 | fileName := uuid + ".dem" | 168 | fileName := uuid + ".dem" |
| 169 | output, err := os.Create(fileName) | 169 | output, err := os.Create(fileName) |
| 170 | defer os.Remove(fileName) | ||
| 170 | defer output.Close() | 171 | defer output.Close() |
| 171 | response, err := http.Get(url) | 172 | response, err := http.Get(url) |
| 172 | if err != nil { | 173 | if err != nil { |