Skip to content

Commit 151388d

Browse files
ah aussi, pour envoyer des notif en dm a un user après l'avoir autentifi
1 parent 8eee711 commit 151388d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/(app)/projects/[id]/actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ export async function deleteDocumentAction(prevState: DeleteDocumentFormState, f
11821182
return { error: "You do not have permission to delete documents in this project." };
11831183
}
11841184

1185-
const docToDelete = await getDocumentByUuid(documentUuid);
1185+
const docToDelete = await dbGetDocumentByUuid(documentUuid);
11861186
if (!docToDelete) return { error: "Document not found."};
11871187

11881188
const success = await dbDeleteDocument(documentUuid);
@@ -2095,7 +2095,7 @@ export async function updateProjectDiscordSettingsAction(
20952095
return { error: "You do not have permission to change Discord settings for this project." };
20962096
}
20972097

2098-
const updatedProject = await dbUpdateProjectDiscordSettings(projectUuid, discordWebhookUrl, discordNotificationsEnabled, discordNotifyTasks, discordNotifyMembers, discordNotifyAnnouncements, discordNotifyDocuments, discordNotifySettings);
2098+
const updatedProject = await dbUpdateProjectDiscordSettings(projectUuid, discordWebhookUrl, discordNotificationsEnabled, notifyTasks, notifyMembers, notifyAnnouncements, notifyDocuments, notifySettings);
20992099

21002100
if (!updatedProject) {
21012101
return { error: "Failed to update project settings in the database." };
@@ -2309,7 +2309,7 @@ export async function duplicateProjectAction(
23092309
});
23102310
}
23112311

2312-
let finalProject = await getProjectByUuid(newProject.uuid);
2312+
let finalProject = await dbGetProjectByUuid(newProject.uuid);
23132313
if (!finalProject) throw new Error("Failed to fetch duplicated project after creation.");
23142314

23152315
if (forkGithubRepo && originalProject.githubRepoName) {

0 commit comments

Comments
 (0)