completionId: cgen-e641000f9c134bce95d2f21c47d942f3
cgen-e641000f9c134bce95d2f21c47d942f3
This commit is contained in:
parent
99983666a2
commit
bd075e7ffa
1 changed files with 22 additions and 0 deletions
|
|
@ -712,6 +712,28 @@ export const aethexProjectService = {
|
|||
throw error;
|
||||
}
|
||||
|
||||
if (data && data.user_id) {
|
||||
try {
|
||||
if (updates.status === "completed") {
|
||||
await aethexNotificationService.createNotification(
|
||||
data.user_id,
|
||||
"success",
|
||||
`✅ Project Completed: ${data.name || "Untitled"}`,
|
||||
"Congratulations on finishing your project!",
|
||||
);
|
||||
} else if (updates.status === "in_progress") {
|
||||
await aethexNotificationService.createNotification(
|
||||
data.user_id,
|
||||
"info",
|
||||
`⏱️ Project Started: ${data.name || "Untitled"}`,
|
||||
"You've started working on this project.",
|
||||
);
|
||||
}
|
||||
} catch (notifError) {
|
||||
console.warn("Failed to create project status notification:", notifError);
|
||||
}
|
||||
}
|
||||
|
||||
return data as AethexProject;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue