refactor: rename DTree to DValue
This commit is contained in:
@@ -18,7 +18,7 @@ void app_asset_tag_once(Request& context, String kind, String path)
|
||||
}
|
||||
}
|
||||
|
||||
void app_asset_tags(Request& context, String kind, DTree assets)
|
||||
void app_asset_tags(Request& context, String kind, DValue assets)
|
||||
{
|
||||
String scalar = assets.to_string();
|
||||
if(scalar != "")
|
||||
@@ -26,7 +26,7 @@ void app_asset_tags(Request& context, String kind, DTree assets)
|
||||
app_asset_tag_once(context, kind, scalar);
|
||||
return;
|
||||
}
|
||||
assets.each([&](const DTree& item, String key) {
|
||||
assets.each([&](const DValue& item, String key) {
|
||||
app_asset_tag_once(context, kind, item.to_string());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user