mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
fix: cache for querying scripts correclty handles ScriptMetadata (#5466)
This commit is contained in:
@@ -802,6 +802,12 @@ const _: () = {
|
||||
}
|
||||
}
|
||||
|
||||
impl ScriptMetadata {
|
||||
fn export_metadata(&self, dst: &impl Storage) -> error::Result<()> {
|
||||
Ok(dst.put("info.json", serde_json::to_vec(self)?)?)
|
||||
}
|
||||
}
|
||||
|
||||
impl Export for ScriptFull {
|
||||
type Untrusted = RawScript;
|
||||
|
||||
@@ -817,7 +823,7 @@ const _: () = {
|
||||
|
||||
fn export(&self, dst: &impl Storage) -> error::Result<()> {
|
||||
self.data.export(dst)?;
|
||||
self.meta.export(dst)?;
|
||||
self.meta.export_metadata(dst)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user