updated
This commit is contained in:
1 parent
e16edd7744
commit
582ab5e7b9
3 files changed
+49
-47
No files matched your search
@@ -44,6 +44,9 @@ func GetAllOperations(userid string) ([]model.Operation, error) {
|
||||
return nil, e
|
||||
}
|
||||
for i := range operations {
|
||||
if operations[i].CategoryID == "" {
|
||||
continue
|
||||
}
|
||||
var category model.Category
|
||||
e := Db.First(&category, "ID = ?", operations[i].CategoryID).Error
|
||||
if e != nil {
|
||||
|
||||
Reference in new issue
Block a user