@things-factory/dashboard 7.0.0-alpha.6 → 7.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/dashboard",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.7",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/auth-base": "^7.0.0-alpha.
|
|
28
|
-
"@things-factory/board-service": "^7.0.0-alpha.
|
|
29
|
-
"@things-factory/board-ui": "^7.0.0-alpha.
|
|
30
|
-
"@things-factory/setting-base": "^7.0.0-alpha.
|
|
27
|
+
"@things-factory/auth-base": "^7.0.0-alpha.7",
|
|
28
|
+
"@things-factory/board-service": "^7.0.0-alpha.7",
|
|
29
|
+
"@things-factory/board-ui": "^7.0.0-alpha.7",
|
|
30
|
+
"@things-factory/setting-base": "^7.0.0-alpha.7"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "85c46b9027d6188ddbd5104215a2256ff5331c19"
|
|
33
33
|
}
|
|
@@ -9,10 +9,7 @@ import { BoardSetting } from './board-setting'
|
|
|
9
9
|
@Resolver(BoardSetting)
|
|
10
10
|
export class BoardSettingsQuery {
|
|
11
11
|
@Query(returns => [BoardSetting], { description: 'To fetch a BoardSettings' })
|
|
12
|
-
async boardSettings(
|
|
13
|
-
@Arg('names', type => [String], { nullable: true }) names: string[],
|
|
14
|
-
@Ctx() context: any
|
|
15
|
-
): Promise<BoardSetting[]> {
|
|
12
|
+
async boardSettings(@Arg('names', type => [String], { nullable: true }) names: string[], @Ctx() context: any): Promise<BoardSetting[]> {
|
|
16
13
|
const { domain } = context.state
|
|
17
14
|
const queryBuilder = getRepository(Setting).createQueryBuilder()
|
|
18
15
|
|
|
@@ -27,7 +24,7 @@ export class BoardSettingsQuery {
|
|
|
27
24
|
'Board.description as boardDescription',
|
|
28
25
|
'Board.thumbnail as boardThumbnail'
|
|
29
26
|
])
|
|
30
|
-
.where('Setting.
|
|
27
|
+
.where('Setting.domain.id = :domain and Setting.category = :category', {
|
|
31
28
|
domain: domain.id,
|
|
32
29
|
category: 'board'
|
|
33
30
|
})
|