Skip to content

Commit

Permalink
PUT /sync/v3/files/:ID doesn't return body
Browse files Browse the repository at this point in the history
  • Loading branch information
nemunaire committed Nov 17, 2024
1 parent 678f63c commit ea127c7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions internal/app/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,19 +898,14 @@ func (app *App) blobStorageWrite(c *gin.Context) {
hash := c.GetHeader(common.CRC32CHashHeader)
log.Debugf("TODO: check/save etc. write file '%s', hash '%s'", fileName, hash)

newgeneration, err := app.blobStorer.StoreBlob(uid, blobID, c.Request.Body, 0)
_, err := app.blobStorer.StoreBlob(uid, blobID, c.Request.Body, 0)
if err != nil {
log.Error(err)
c.AbortWithStatus(http.StatusInternalServerError)
return
}

//not checked by the client yet, but who knows
crcJSON(c, http.StatusOK, messages.SyncRootV4Response{
Generation: newgeneration,
Hash: string(blobID),
SchemaVersion: SchemaVersion,
})
c.Status(http.StatusOK)
}

func (app *App) integrationsGetMetadata(c *gin.Context) {
Expand Down

0 comments on commit ea127c7

Please sign in to comment.