diff --git a/backend/webappdb/webappdb.go b/backend/webappdb/webappdb.go index 67784dee35fbe50b3aa45bf7400859adbe64757d..5166982a170f54909a4605ba1b052efe3c1e0491 100644 --- a/backend/webappdb/webappdb.go +++ b/backend/webappdb/webappdb.go @@ -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(), }