From 63236362ca3d51ccb99ae8de96f532b4038f8613 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 31 Jul 2024 11:50:57 +0200 Subject: [PATCH] optionnal vars failed --- models/utils/interfaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/utils/interfaces.go b/models/utils/interfaces.go index a2faabe..4125b3f 100644 --- a/models/utils/interfaces.go +++ b/models/utils/interfaces.go @@ -18,7 +18,7 @@ type DBObject interface { type Accessor interface { SetLogger(t DataType) GetType() string - Search(word string) ([]ShallowDBObject, int, error) + Search(word string, options ...string) ([]ShallowDBObject, int, error) LoadAll() ([]ShallowDBObject, int, error) LoadOne(id string) (DBObject, int, error) DeleteOne(id string) (DBObject, int, error)