a.Type
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"slices"
|
"slices"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -250,6 +251,7 @@ func (a *AbstractAccessor[T]) CopyOne(data DBObject) (DBObject, int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *AbstractAccessor[T]) LoadOne(id string) (DBObject, int, error) {
|
func (a *AbstractAccessor[T]) LoadOne(id string) (DBObject, int, error) {
|
||||||
|
fmt.Println(a.Type)
|
||||||
return GenericLoadOne(id, a.New(), func(d DBObject) (DBObject, int, error) {
|
return GenericLoadOne(id, a.New(), func(d DBObject) (DBObject, int, error) {
|
||||||
return d, 200, nil
|
return d, 200, nil
|
||||||
}, a)
|
}, a)
|
||||||
|
|||||||
Reference in New Issue
Block a user