Skip to content

Commit

Permalink
Change resources to vector type.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin42 authored Jan 15, 2024
1 parent 0647842 commit 5aad1ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PB/src/SerializationStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ std::variant<Json, RegularImage> serialize(int depth, std::pair<std::string, Reg
auto [key, image] = entry;
auto jsonOrError =
serialize<VirtualImageType::RegularImage, Path, Path, Path, Path, Path, Path>(
serialize<VirtualImageType::RegularImage, Path, Path, Path, Path, Path, std::vector<Path>>(
depth + 1, {"img-type", image.type()},
{"key-path", image.kryPath()},
{"frontend-full", image.frontend().full},
{"frontend-medium", image.frontend().medium},
{"frontend-small", image.frontend().small},
{"resource", image.resources()});
{"resource", {image.resources()}});
if (std::holds_alternative<PBDev::Error>(jsonOrError)) {
return jsonOrError;
Expand All @@ -295,13 +295,13 @@ std::variant<Json, RegularImage> serialize(int depth, std::pair<std::string, Tex
auto [key, image] = entry;
auto jsonOrError =
serialize<VirtualImageType::TextImage, Path, Path, Path, Path, Path, Path>(
serialize<VirtualImageType::TextImage, Path, Path, Path, Path, Path, std::vector<Path>>(
depth + 1, {"img-type", image.type()},
{"key-path", image.kryPath()},
{"frontend-full", image.frontend().full},
{"frontend-medium", image.frontend().medium},
{"frontend-small", image.frontend().small},
{"resource", image.resources()});
{"resource", {image.resources()}});
if (std::holds_alternative<PBDev::Error>(jsonOrError)) {
return jsonOrError;
Expand Down

0 comments on commit 5aad1ab

Please sign in to comment.