Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
fc653e5c
Commit
fc653e5c
authored
7 years ago
by
Lukas F. Hartmann
Browse files
Options
Download
Email Patches
Plain Diff
fix pdf grid import with zones #19
parent
4c5e6ea2
master
saml-integration
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/api/spaces.js
+7
-7
routes/api/spaces.js
with
7 additions
and
7 deletions
+7
-7
routes/api/spaces.js
+
7
-
7
View file @
fc653e5c
...
...
@@ -488,8 +488,8 @@ router.post('/:id/artifacts-pdf', function(req, res, next) {
space_id
:
req
.
space
.
_id
,
user_id
:
userId
,
editor_name
:
req
.
guest_name
,
w
:
artifact
.
board
.
w
+
20
,
h
:
artifact
.
board
.
h
+
40
,
w
:
artifact
.
w
+
20
,
h
:
artifact
.
h
+
40
,
x
:
x
-
10
,
y
:
y
-
30
,
z
:
number
,
...
...
@@ -498,10 +498,10 @@ router.post('/:id/artifacts-pdf', function(req, res, next) {
align
:
"
center
"
};
db
.
Artifact
.
create
(
zone
,
((
z
)
=>
{
redis
.
sendMessage
(
"
create
"
,
"
Artifact
"
,
z
one
.
toJSON
(),
req
.
channelId
);
db
.
Artifact
.
create
(
zone
).
then
((
z
)
=>
{
redis
.
sendMessage
(
"
create
"
,
"
Artifact
"
,
z
.
toJSON
(),
req
.
channelId
);
cb
(
null
,
[
artifact
,
zone
]);
})
)
;
});
}
else
{
cb
(
null
,
[
artifact
]);
...
...
@@ -522,10 +522,10 @@ router.post('/:id/artifacts-pdf', function(req, res, next) {
if
(
artifact_or_artifacts
instanceof
Array
)
{
_
.
each
(
artifact_or_artifacts
,
(
a
)
=>
{
redis
.
sendMessage
(
"
create
"
,
"
Artifact
"
,
a
.
toJSON
(
),
req
.
channelId
);
redis
.
sendMessage
(
"
create
"
,
"
Artifact
"
,
JSON
.
stringify
(
a
),
req
.
channelId
);
});
}
else
{
redis
.
sendMessage
(
"
create
"
,
"
Artifact
"
,
artifact_or_artifacts
.
toJSON
(
),
req
.
channelId
);
redis
.
sendMessage
(
"
create
"
,
"
Artifact
"
,
JSON
.
stringify
(
artifact_or_artifacts
),
req
.
channelId
);
}
cb
(
null
);
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets