mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
fix error
This commit is contained in:
@@ -169,9 +169,9 @@ func (s *Seen) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadRespon
|
|||||||
// get the records for the resource type
|
// get the records for the resource type
|
||||||
if len(req.ResourceIds) == 1 {
|
if len(req.ResourceIds) == 1 {
|
||||||
// read the key itself
|
// read the key itself
|
||||||
rec.ResourceId = req.ResourceIds[0]
|
rec.ResourceID = req.ResourceIds[0]
|
||||||
// gen key
|
// gen key
|
||||||
key = rec.Key(ctx)
|
key := rec.Key(ctx)
|
||||||
// get the record
|
// get the record
|
||||||
recs, err = store.Read(key, store.ReadLimit(1))
|
recs, err = store.Read(key, store.ReadLimit(1))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user