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,
|
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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue