🐛 Fix uuid duplicate when link exists
This commit is contained in:
@ -50,6 +50,7 @@ func NewAttachmentMetadata(tx *gorm.DB, user models.Account, file *multipart.Fil
|
||||
linked = true
|
||||
attachment = exists
|
||||
attachment.ID = 0
|
||||
attachment.Uuid = uuid.NewString()
|
||||
attachment.AccountID = user.ID
|
||||
} else {
|
||||
// Upload the new file
|
||||
|
Reference in New Issue
Block a user