create comment working

This commit is contained in:
isUnknown 2024-12-19 16:07:01 +01:00
parent 94ae220174
commit bc0ae8861f
3 changed files with 3 additions and 125 deletions

View file

@ -1,63 +1,4 @@
Comments:
-
location:
page:
uri: >
projects/miss-dior-blooming-bouquet/proposal
title: Offre commerciale
project:
title: Miss Dior Blooming Bouquet
uri: projects/miss-dior-blooming-bouquet
dialogUri: '/projects/miss-dior-blooming-bouquet?dialog=proposal&fileIndex=0'
file:
uuid: file://3vTh1tMFeFM2JxaN
url: >
http://localhost:8888/media/pages/projects/miss-dior-blooming-bouquet/proposal/788ddebfe3-1731941917/des-textos-revelent-comment-bfm-sest-mise-au-service-de-sarkozy-le-boss.pdf
position:
pageIndex: 1
x: "57.105131038425"
y: "13.127413127413"
text: un commentaire
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-12-19T10:26:05+01:00
id: e16a5304-330b-4460-acbd-a6e471f4cda2
type: comment
replies:
-
location:
page:
uri: >
projects/miss-dior-blooming-bouquet/proposal
title: Offre commerciale
project:
title: Miss Dior Blooming Bouquet
uri: projects/miss-dior-blooming-bouquet
dialogUri: '/projects/miss-dior-blooming-bouquet?dialog=proposal&fileIndex=0'
file:
uuid: file://3vTh1tMFeFM2JxaN
url: >
http://localhost:8888/media/pages/projects/miss-dior-blooming-bouquet/proposal/788ddebfe3-1731941917/des-textos-revelent-comment-bfm-sest-mise-au-service-de-sarkozy-le-boss.pdf
parent:
author:
name: Adrien Payet
email: adrien.payet@outlook.com
id: e16a5304-330b-4460-acbd-a6e471f4cda2
position:
pageIndex: 1
text: une réponse
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-12-19T10:26:09+01:00
id: bc64e066-299d-4d80-a651-2c17482cda2f
type: comment-reply
Comments:
----

View file

@ -1,65 +1,4 @@
Comments:
-
location:
page:
uri: >
projects/projet-recharge-en-forme/extended-brief
title: Brief enrichi
project:
title: Projet Recharge en forme
uri: projects/projet-recharge-en-forme
dialogUri: >
/projects/projet-recharge-en-forme?dialog=extended-brief
file:
uuid: file://7Bqr3iCH8ltDrdGi
url: >
http://localhost:8888/media/pages/projects/projet-recharge-en-forme/extended-brief/d44de3da29-1733319278/wip-20240916-demonstrateurs-recharge-en-forme.pdf
position:
pageIndex: 1
x: "64.385025360981"
y: "48.295454545455"
text: test
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-12-19T16:02:45+01:00
id: ee0c6c8d-4d0f-4262-b4b7-d6c5230b2802
type: comment
replies:
-
location:
page:
uri: >
projects/projet-recharge-en-forme/extended-brief
title: Brief enrichi
project:
title: Projet Recharge en forme
uri: projects/projet-recharge-en-forme
dialogUri: >
/projects/projet-recharge-en-forme?dialog=extended-brief
file:
uuid: file://7Bqr3iCH8ltDrdGi
url: >
http://localhost:8888/media/pages/projects/projet-recharge-en-forme/extended-brief/d44de3da29-1733319278/wip-20240916-demonstrateurs-recharge-en-forme.pdf
parent:
author:
name: Adrien Payet
email: adrien.payet@outlook.com
id: ee0c6c8d-4d0f-4262-b4b7-d6c5230b2802
position:
pageIndex: 1
text: test
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-12-19T16:02:52+01:00
id: 3ddd2679-4c67-4efa-8492-a325fda425fb
type: comment-reply
Comments:
----

View file

@ -58,9 +58,7 @@ return [
try {
$user->sendNotification($project, $commentData);
} catch (\Throwable $th) {
echo json_encode([
"error" => $th->getMessage() . " in " . $th->getFile() . " line " . $th->getLine(),
]);
throw new Exception($th->getMessage(), 1);
}
exit;