fix(frontend): update Share interface property from download_count to downloads
All checks were successful
Automated Container Build / build-and-push (push) Successful in 3m25s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 3m25s
This commit is contained in:
parent
ed3eed6bb7
commit
1f83d57942
21 changed files with 241 additions and 137 deletions
|
|
@ -722,8 +722,6 @@ func (h *FSHandler) RestoreFromTrash(c *fiber.Ctx) error {
|
|||
)
|
||||
}
|
||||
|
||||
h.DB.AddAuditLog("restored", originalPath, c.IP())
|
||||
|
||||
h.DB.AddAuditLog("restored", fmt.Sprintf("Restored '%s' from trash", originalPath), c.IP())
|
||||
|
||||
return c.JSON(fiber.Map{"message": "restored successfully", "path": originalPath})
|
||||
|
|
@ -1024,10 +1022,6 @@ func (h *FSHandler) Download(c *fiber.Ctx) error {
|
|||
return c.Status(fiber.StatusNotFound).JSON(fiber.Map{"error": "file not found"})
|
||||
}
|
||||
|
||||
// Verify checksum on download if stored
|
||||
relativePath := c.Locals("relativePath").(string)
|
||||
var storedChecksum string
|
||||
h.DB.QueryRow("SELECT checksum FROM files WHERE path = ?", filepath.ToSlash(relativePath)).Scan(&storedChecksum)
|
||||
|
||||
// Set appropriate headers for range requests
|
||||
c.Set("Accept-Ranges", "bytes")
|
||||
|
|
|
|||
Reference in a new issue