forked from farhoodlabs/paperclip
Add draft routine defaults and run-time overrides
This commit is contained in:
@@ -3310,9 +3310,9 @@ export function companyPortabilityService(db: Db, storage?: StorageService) {
|
||||
|
||||
for (const routine of selectedRoutineRows) {
|
||||
const taskSlug = taskSlugByRoutineId.get(routine.id)!;
|
||||
const projectSlug = projectSlugById.get(routine.projectId) ?? null;
|
||||
const projectSlug = routine.projectId ? (projectSlugById.get(routine.projectId) ?? null) : null;
|
||||
const taskPath = `tasks/${taskSlug}/TASK.md`;
|
||||
const assigneeSlug = idToSlug.get(routine.assigneeAgentId) ?? null;
|
||||
const assigneeSlug = routine.assigneeAgentId ? (idToSlug.get(routine.assigneeAgentId) ?? null) : null;
|
||||
files[taskPath] = buildMarkdown(
|
||||
{
|
||||
name: routine.title,
|
||||
|
||||
Reference in New Issue
Block a user