Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
C4Ai_DR-P
public-service-provider
Commits
ce31992f
Commit
ce31992f
authored
Jul 03, 2020
by
Mahdi Sellami
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generated mongoDB id value to verfahrensId
parent
538fd66a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
service/ApplicationService.js
service/ApplicationService.js
+6
-1
No files found.
service/ApplicationService.js
View file @
ce31992f
...
...
@@ -9,7 +9,12 @@ const Application = require('../models/application');
**/
exports
.
postCaseApplication
=
function
(
body
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
const
applicationRecord
=
Application
.
create
(
body
);
// TODO maybe remove VerfahrensId later (discuss with Peter)
var
applicationRecord
=
Application
.
create
(
body
).
then
(
function
(
doc
)
{
doc
.
verfahrensId
=
doc
.
id
doc
.
save
()
return
doc
});
resolve
(
applicationRecord
);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment