Merge branch 'matteo/server' into matteo/frontend

# Conflicts:
#	.eslintrc.json
This commit is contained in:
Matteo Cominetti
2020-10-14 19:28:07 +01:00
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
*.graphql
@@ -32,6 +32,8 @@ type StreamCollaborator {
id: String!
name: String!
role: String!
company: String
avatar: String
}
type StreamCollection {
+2 -2
View File
@@ -140,10 +140,10 @@ module.exports = {
async getStreamUsers( { streamId } ) {
let query =
Acl( ).columns( { role: 'stream_acl.role' }, 'id', 'name' ).select( )
Acl( ).columns( { role: 'stream_acl.role' }, 'id', 'name', 'company', 'avatar' ).select( )
.where( { resourceId: streamId } )
.rightJoin( 'users', { 'users.id': 'stream_acl.userId' } )
.select( 'stream_acl.role', 'name', 'id' )
.select( 'stream_acl.role', 'name', 'id', 'company', 'avatar' )
.orderBy( 'stream_acl.role' )
return await query