fix putting KV on a string
This commit is contained in:
parent
e8808c501b
commit
1fac8c7312
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue