🐛 Fix destination loading

This commit is contained in:
2024-12-29 00:03:00 +08:00
parent cd0141f5b1
commit 3a00a06541
4 changed files with 16 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ func CreateBoost(user *sec.UserInfo, source models.Attachment, destination int)
AccountID: user.ID,
}
if des, ok := destinationsByIndex[destination]; !ok {
if des, ok := DestinationsByIndex[destination]; !ok {
return boost, fmt.Errorf("invalid destination: %d", destination)
} else {
var destBase models.BaseDestination