fix putting KV on a string

This commit is contained in:
Luna 2020-05-31 21:40:31 -03:00
parent e8808c501b
commit 1fac8c7312
1 changed files with 2 additions and 3 deletions

View File

@ -120,9 +120,8 @@ pub const Write = struct {
allocator: *std.mem.Allocator,
params: *plugins.ParamMap,
) Write {
const data = params.get("data").?;
return Write{
.data = data.value,
.data = params.get("data").?.value,
};
}
@ -143,7 +142,7 @@ pub const Embed = struct {
pub fn init(allocator: *std.mem.Allocator, params: *plugins.ParmaMap) @This() {
return Embed{
.allocator = allocator,
.filepath = params.get("path").?,
.filepath = params.get("path").?.value,
};
}