not a proper type ref o nworkspace

This commit is contained in:
mr 2024-07-26 09:51:54 +02:00
parent 5ad4d523ab
commit d5c5b454f4

View File

@ -55,6 +55,10 @@ func LoadAll(collection LibDataEnum) LibDataShallow {
return LibDataShallow{Data: d, Code: code}
}
func Model(t int) utils.DBObject {
return models.Model(t)
}
func LoadOne(collection LibDataEnum, id string) LibData {
d, code, err := models.Model(collection.EnumIndex()).GetAccessor().LoadOne(id)
if err != nil {