Recovers lost files and commits work from the past 5-6 days. Holy shit that was a close call.
This commit is contained in:
@@ -565,9 +565,10 @@ async function addDependency(tasksPath, taskId, dependencyId) {
|
||||
// Call the original function in a context where log calls are intercepted
|
||||
const result = (() => {
|
||||
// Use Function.prototype.bind to create a new function that has logProxy available
|
||||
return Function('tasks', 'tasksPath', 'log', 'customLogger',
|
||||
// Pass isCircularDependency explicitly to make it available
|
||||
return Function('tasks', 'tasksPath', 'log', 'customLogger', 'isCircularDependency', 'taskExists',
|
||||
`return (${originalValidateTaskDependencies.toString()})(tasks, tasksPath);`
|
||||
)(tasks, tasksPath, logProxy, customLogger);
|
||||
)(tasks, tasksPath, logProxy, customLogger, isCircularDependency, taskExists);
|
||||
})();
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user