fix: fix psql function

This commit is contained in:
Nemo D'ACREMONT 2024-12-03 11:05:48 +01:00
parent 56c037745c
commit 8cda756f6d
No known key found for this signature in database
GPG Key ID: 6E5BCE8022FA8276
2 changed files with 10 additions and 1 deletions

View File

@ -16,7 +16,12 @@ LANGUAGE SQL;
-- Liste des modèles faisables à partir d'un membre
CREATE OR REPLACE FUNCTION modeles_faisables_membre(int) RETURNS TABLE(id_modele int) AS
CREATE OR REPLACE FUNCTION modeles_faisables_membre(int) RETURNS TABLE(
id_modele int ,
nom_modele VARCHAR(255) ,
url_notice_modele VARCHAR(2048) ,
id_membre int , id_modele_etendu int
) AS
$$
SELECT *
FROM modeles

View File

@ -29,6 +29,10 @@ app.use(morgan(log_format));
// Defines endpoints
app.use(routes);
process.on('*', (e) => {
console.error(`Unhandled error catched: ${e}`);
});
app.listen(port, () => {
return console.log(`Briques is listening at http://localhost:${port}`);
});