From d5c5b454f4d0e53844a15d714b0923fa8759a04b Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 26 Jul 2024 09:51:54 +0200 Subject: [PATCH] not a proper type ref o nworkspace --- entrypoint.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.go b/entrypoint.go index b1ea658..37f99cb 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -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 {