From a56bc9e02bb7ed85ef200518dd89f21ab79129d2 Mon Sep 17 00:00:00 2001 From: Eduardo Mathias <ems19@inf.ufpr.br> Date: Tue, 29 Aug 2023 11:20:29 -0300 Subject: [PATCH] [ADD] VOLUME AND PAGE 2 --- src/libs/routes_v1/publication.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/routes_v1/publication.js b/src/libs/routes_v1/publication.js index 9d59cad4..441b8674 100644 --- a/src/libs/routes_v1/publication.js +++ b/src/libs/routes_v1/publication.js @@ -159,6 +159,8 @@ pubApp.post('/edit', passport.authenticate('bearer', { session: false }), author pb.is_homepage = data.homepage || pb.is_homepage; pb.is_draft = data.rascunho || pb.is_draft; pb.upload = _file_id || pb.upload; + pb.volume = data.volume || pb.volume; + pb.pages = data.pagina || pb.pages; pb.save().catch(function (err) { log.error(err); -- GitLab