mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 08:34:20 +02:00
Fix notification queries
This commit is contained in:
parent
d5ae2fe5f8
commit
db6d296f05
@ -115,8 +115,18 @@ const Notifications = ({ dispatch, jwt, volunteerNotifs }: Props): JSX.Element =
|
||||
<br />
|
||||
{participation === "peut-etre" ? (
|
||||
<div>
|
||||
On te redemandera dans quelques temps. Si tu as des
|
||||
questions
|
||||
On te le reproposera dans quelques temps.
|
||||
<br />
|
||||
Si tu as besoin d'infos, viens nous en parler sur le
|
||||
serveur Discord ! Pour le rejoindre,{" "}
|
||||
<a
|
||||
href="https://discord.com/invite/eXhjKxSBB4"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
clique ici{" "}
|
||||
</a>
|
||||
.
|
||||
</div>
|
||||
) : null}
|
||||
<div className={styles.formButtons}>
|
||||
|
@ -92,7 +92,7 @@ export const volunteerForgot = expressAccessor.set(
|
||||
export const volunteerNotifsSet = expressAccessor.set(
|
||||
async (list: Volunteer[], body: RequestBody, id: number) => {
|
||||
const requestedId = +body[0]
|
||||
if (requestedId !== id) {
|
||||
if (requestedId !== id && requestedId !== 0) {
|
||||
throw Error(`On ne peut acceder qu'à ses propres notifs`)
|
||||
}
|
||||
const notifChanges = body[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user