🐛 Bug fixes
This commit is contained in:
parent
626fe47bb4
commit
a4e81cabec
@ -132,6 +132,9 @@ func updateAttachmentMeta(c *fiber.Ctx) error {
|
||||
First(&compressed).Error; err != nil {
|
||||
return fiber.NewError(fiber.StatusBadRequest, fmt.Sprintf("unable find compressed: %v", err))
|
||||
}
|
||||
if attachment.Compressed != nil {
|
||||
services.UnsetAttachmentAsCompressed(*attachment.Compressed)
|
||||
}
|
||||
compressed, err := services.SetAttachmentAsCompressed(compressed)
|
||||
if err != nil {
|
||||
return fiber.NewError(fiber.StatusBadRequest, fmt.Sprintf("unable set compressed: %v", err))
|
||||
|
Loading…
Reference in New Issue
Block a user