Commit bd3ca21d authored by ale's avatar ale
Browse files

Use the correct cms_info data type for aux-db webapp resources

parent f52edad3
Pipeline #12936 passed with stages
in 1 minute and 51 seconds
......@@ -11,6 +11,9 @@ import (
auxpb "git.autistici.org/ai3/tools/aux-db/proto"
)
// Data type of the webapp-related resources in aux-db.
const auxDbWebappDataType = "cms_info"
// AuxWebappBackend looks up website information (cms_info data type) in
// the aux-db service.
type AuxWebappBackend struct {
......@@ -112,7 +115,7 @@ func (tx *wdbTX) lookup(ctx context.Context, resources []*as.Resource) {
for _, r := range resources {
// Create the lookup key for aux-db.
auxKey := auxpb.Key{
Type: "webapp",
Type: auxDbWebappDataType,
Shard: r.Shard,
ResourceID: r.ID.String(),
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment