mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-20 16:03:21 +00:00
nits
This commit is contained in:
+1
-1
@@ -107,13 +107,13 @@ async function addCodebaseDigestIfRelevant(
|
||||
if (!isTs) {
|
||||
return content;
|
||||
}
|
||||
log.info(`isScript: ${isScript}, isTs: ${isTs}; ${path}`);
|
||||
if (isTs) {
|
||||
const c = findCodebase(path, codebases);
|
||||
if (c) {
|
||||
const parsed: any = yamlParse(content);
|
||||
if (parsed && typeof parsed == "object") {
|
||||
parsed["codebase"] = c.digest;
|
||||
parsed["lock"] = undefined;
|
||||
return yamlStringify(parsed, yamlOptions);
|
||||
} else {
|
||||
throw Error(
|
||||
|
||||
Reference in New Issue
Block a user