mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43: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" {} \;
|
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
|
replace_value $key $value /app/
|
||||||
key=$(echo $line | cut -d "=" -f1)
|
done < .env
|
||||||
value=$(echo $line | cut -d "=" -f2)
|
fi
|
||||||
|
|
||||||
replace_value $key $value /app/
|
|
||||||
done
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
@ -24,6 +24,7 @@ const nextConfig = {
|
|||||||
NEXT_PUBLIC_USE_FAKE_DATA: process.env.NEXT_PUBLIC_USE_FAKE_DATA || 'false',
|
NEXT_PUBLIC_USE_FAKE_DATA: process.env.NEXT_PUBLIC_USE_FAKE_DATA || 'false',
|
||||||
AUTH_SECRET: process.env.AUTH_SECRET || 'false',
|
AUTH_SECRET: process.env.AUTH_SECRET || 'false',
|
||||||
NEXTAUTH_URL: process.env.NEXTAUTH_URL || "http://localhost:3000",
|
NEXTAUTH_URL: process.env.NEXTAUTH_URL || "http://localhost:3000",
|
||||||
|
DOCUSEAL_API_KEY: process.env.DOCUSEAL_API_KEY,
|
||||||
},
|
},
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
NEXT_PUBLIC_API_URL=_NEXT_PUBLIC_API_URL_
|
NEXT_PUBLIC_API_URL=_NEXT_PUBLIC_API_URL_
|
||||||
NEXT_PUBLIC_USE_FAKE_DATA=_NEXT_PUBLIC_USE_FAKE_DATA_
|
NEXT_PUBLIC_USE_FAKE_DATA=_NEXT_PUBLIC_USE_FAKE_DATA_
|
||||||
AUTH_SECRET=_AUTH_SECRET_
|
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,
|
fees: allFeesIds,
|
||||||
discounts: allDiscountsds,
|
discounts: allDiscountsds,
|
||||||
|
fileGroup: selectedFileGroup,
|
||||||
establishment: ESTABLISHMENT_ID
|
establishment: ESTABLISHMENT_ID
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -432,6 +433,7 @@ useEffect(()=>{
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
logger.error('Error:', 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) {
|
if (isLoading) {
|
||||||
return <Loader />;
|
return <Loader />;
|
||||||
|
|||||||
Reference in New Issue
Block a user