mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +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
|
||||
if len(req.ResourceIds) == 1 {
|
||||
// read the key itself
|
||||
rec.ResourceId = req.ResourceIds[0]
|
||||
rec.ResourceID = req.ResourceIds[0]
|
||||
// gen key
|
||||
key = rec.Key(ctx)
|
||||
key := rec.Key(ctx)
|
||||
// get the record
|
||||
recs, err = store.Read(key, store.ReadLimit(1))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user