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, allocator: *std.mem.Allocator,
params: *plugins.ParamMap, params: *plugins.ParamMap,
) Write { ) Write {
const data = params.get("data").?;
return Write{ 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() { pub fn init(allocator: *std.mem.Allocator, params: *plugins.ParmaMap) @This() {
return Embed{ return Embed{
.allocator = allocator, .allocator = allocator,
.filepath = params.get("path").?, .filepath = params.get("path").?.value,
}; };
} }