mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-10 01:24: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 />
|
<br />
|
||||||
{participation === "peut-etre" ? (
|
{participation === "peut-etre" ? (
|
||||||
<div>
|
<div>
|
||||||
On te redemandera dans quelques temps. Si tu as des
|
On te le reproposera dans quelques temps.
|
||||||
questions
|
<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>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div className={styles.formButtons}>
|
<div className={styles.formButtons}>
|
||||||
|
@ -92,7 +92,7 @@ export const volunteerForgot = expressAccessor.set(
|
|||||||
export const volunteerNotifsSet = expressAccessor.set(
|
export const volunteerNotifsSet = expressAccessor.set(
|
||||||
async (list: Volunteer[], body: RequestBody, id: number) => {
|
async (list: Volunteer[], body: RequestBody, id: number) => {
|
||||||
const requestedId = +body[0]
|
const requestedId = +body[0]
|
||||||
if (requestedId !== id) {
|
if (requestedId !== id && requestedId !== 0) {
|
||||||
throw Error(`On ne peut acceder qu'à ses propres notifs`)
|
throw Error(`On ne peut acceder qu'à ses propres notifs`)
|
||||||
}
|
}
|
||||||
const notifChanges = body[1]
|
const notifChanges = body[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user