mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 15:33:22 +00:00
fix: correction fileGroup lors de l'enregistrement d'un nouveau responsable
This commit is contained in:
@ -14,11 +14,15 @@ replace_value() {
|
||||
find . -type f -exec sed -i "s|_${key}_|${value}|g" {} \;
|
||||
}
|
||||
|
||||
# Lire les clés et valeurs depuis un fichier .env
|
||||
if [ -f .env ]; then
|
||||
while IFS='=' read -r key value; do
|
||||
# Ignorer les lignes vides et les commentaires
|
||||
[ -z "$key" ] && continue
|
||||
[ "${key#\#}" != "$key" ] && continue
|
||||
|
||||
printenv | while read -r line ; do
|
||||
key=$(echo $line | cut -d "=" -f1)
|
||||
value=$(echo $line | cut -d "=" -f2)
|
||||
replace_value $key $value /app/
|
||||
done < .env
|
||||
fi
|
||||
|
||||
replace_value $key $value /app/
|
||||
done
|
||||
exec "$@"
|
||||
@ -24,6 +24,7 @@ const nextConfig = {
|
||||
NEXT_PUBLIC_USE_FAKE_DATA: process.env.NEXT_PUBLIC_USE_FAKE_DATA || 'false',
|
||||
AUTH_SECRET: process.env.AUTH_SECRET || 'false',
|
||||
NEXTAUTH_URL: process.env.NEXTAUTH_URL || "http://localhost:3000",
|
||||
DOCUSEAL_API_KEY: process.env.DOCUSEAL_API_KEY,
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
NEXT_PUBLIC_API_URL=_NEXT_PUBLIC_API_URL_
|
||||
NEXT_PUBLIC_USE_FAKE_DATA=_NEXT_PUBLIC_USE_FAKE_DATA_
|
||||
AUTH_SECRET=_AUTH_SECRET_
|
||||
NEXTAUTH_URL=_NEXTAUTH_URL_
|
||||
NEXTAUTH_URL=_NEXTAUTH_URL_
|
||||
DOCUSEAL_API_KEY=_DOCUSEAL_API_KEY_
|
||||
@ -414,6 +414,7 @@ useEffect(()=>{
|
||||
},
|
||||
fees: allFeesIds,
|
||||
discounts: allDiscountsds,
|
||||
fileGroup: selectedFileGroup,
|
||||
establishment: ESTABLISHMENT_ID
|
||||
};
|
||||
|
||||
@ -432,6 +433,7 @@ useEffect(()=>{
|
||||
})
|
||||
.catch((error) => {
|
||||
logger.error('Error:', error);
|
||||
//deleteProfile(response.id, csrfToken);
|
||||
});
|
||||
}
|
||||
})
|
||||
@ -569,23 +571,6 @@ const columnsSubscribed = [
|
||||
|
||||
];
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
id: 'pending',
|
||||
label: t('pending'),
|
||||
count: totalPending
|
||||
},
|
||||
{
|
||||
id: 'subscribed',
|
||||
label: t('subscribed'),
|
||||
count: totalSubscribed
|
||||
},
|
||||
{
|
||||
id: 'archived',
|
||||
label: t('archived'),
|
||||
count: totalArchives
|
||||
}
|
||||
];
|
||||
|
||||
if (isLoading) {
|
||||
return <Loader />;
|
||||
|
||||
Reference in New Issue
Block a user