Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
a79e493d
Verified
Commit
a79e493d
authored
7 years ago
by
Lukas Mauß
Committed by
Lukas Maximilian Kimpel
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adjust room service' getRooms() so that the user gets the rooms which he has created
parent
61931d9e
1 merge request
!87
participant home screen api
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/room.service.ts
+3
-14
3 additions, 14 deletions
src/app/room.service.ts
with
3 additions
and
14 deletions
src/app/room.service.ts
+
3
−
14
View file @
a79e493d
...
...
@@ -24,29 +24,18 @@ export class RoomService extends ErrorHandlingService {
getRooms
():
Observable
<
Room
[]
>
{
const
url
=
this
.
apiBaseUrl
+
this
.
roomsUrl
+
this
.
findRoomsUrl
;
return
this
.
http
.
post
<
Room
[]
>
(
url
,
{
properties
:
{},
externalFilters
:
{
inHistoryOfUserId
:
this
.
authService
.
getUser
().
userId
}
properties
:
{
ownerId
:
this
.
authService
.
getUser
().
userId
},
externalFilters
:
{}
}).
pipe
(
tap
(
_
=>
''
),
catchError
(
this
.
handleError
(
'
getRooms
'
,
[]))
);
}
getRoomsCreator
():
Observable
<
Room
[]
>
{
const
getRoomsUrl
=
'
https://arsnova-staging.mni.thm.de/api/room/find
'
;
return
this
.
http
.
post
<
Room
[]
>
(
getRoomsUrl
,
{
properties
:
{},
externalFilters
:
{
ownerId
:
this
.
authService
.
getUser
().
userId
}
},
httpOptions
);
}
addRoom
(
room
:
Room
):
Observable
<
Room
>
{
const
connectionUrl
=
this
.
apiBaseUrl
+
this
.
roomsUrl
+
'
/
'
;
return
this
.
http
.
post
<
Room
>
(
connectionUrl
,
{
shortId
:
room
.
shortId
,
ownerId
:
this
.
authService
.
getUser
().
userId
,
ownerId
:
this
.
authService
.
getUser
().
userId
,
abbreviation
:
room
.
abbreviation
,
name
:
room
.
name
,
closed
:
room
.
closed
,
description
:
room
.
description
},
httpOptions
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment