File tree Expand file tree Collapse file tree 4 files changed +17
-9
lines changed Expand file tree Collapse file tree 4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 35
35
"author" :
" Artem Zabolotnyi <[email protected] >" ,
36
36
"license" : " MIT" ,
37
37
"peerDependencies" : {
38
- "admin-bro" : " ^3.3.1 " ,
38
+ "admin-bro" : " ^3.x " ,
39
39
"typeorm" : " >=0.2.28"
40
40
},
41
41
"optionalDependencies" : {},
42
42
"devDependencies" : {
43
43
"@types/chai" : " ^4.2.4" ,
44
44
"@types/mocha" : " ^5.2.7" ,
45
45
"@types/node" : " 12.0.10" ,
46
- "admin-bro" : " ^3.3.1 " ,
46
+ "admin-bro" : " 3.4.0-beta.2 " ,
47
47
"chai" : " ^4.2.0" ,
48
48
"class-validator" : " ^0.11.0" ,
49
49
"mocha" : " ^6.2.2" ,
Original file line number Diff line number Diff line change @@ -60,4 +60,8 @@ export class Property extends BaseProperty {
60
60
61
61
return type
62
62
}
63
+
64
+ public isArray ( ) : boolean {
65
+ return this . column . isArray
66
+ }
63
67
}
Original file line number Diff line number Diff line change @@ -145,7 +145,11 @@ export class Resource extends BaseResource {
145
145
}
146
146
147
147
if ( type === 'number' ) {
148
- preparedParams [ key ] = Number ( param )
148
+ if ( property . isArray ( ) ) {
149
+ preparedParams [ key ] = param . map ( ( p ) => Number ( p ) )
150
+ } else {
151
+ preparedParams [ key ] = Number ( param )
152
+ }
149
153
}
150
154
151
155
if ( type === 'reference' ) {
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
5
- " @admin-bro/design-system@^ 1.7.0 " :
5
+
6
6
version "1.7.0"
7
7
resolved "https://registry.yarnpkg.com/@admin-bro/design-system/-/design-system-1.7.0.tgz#1a5f46bff89db7aba33367db9a84cf00ddaaea5c"
8
8
integrity sha512-pf+b/YkKoylvcg1wp1yUhbWv0e5MZHjKQdPqTt6UXutVgpqldimDv5be3i2avkqNSB5XrOXVZTIcW4vj0vy33g==
@@ -1887,12 +1887,12 @@ acorn@^7.3.1:
1887
1887
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c"
1888
1888
integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==
1889
1889
1890
- admin-bro@^3.3.1 :
1891
- version "3.3.1 "
1892
- resolved "https://registry.yarnpkg.com/admin-bro/-/admin-bro-3.3.1. tgz#ef7710310f80b0c945fbb1dff49c6b2359c9a882 "
1893
- integrity sha512-ObdiPDMA8u89U35fwRHxSaje2zBjPqkKlT+6oN80HIRdkQImQ+51hEU5YaQ/EEzWFQGqGYuSxAhkFtXY6ZLjhg ==
1890
+ admin-bro@3.4.0-beta.2 :
1891
+ version "3.4.0-beta.2 "
1892
+ resolved "https://registry.yarnpkg.com/admin-bro/-/admin-bro-3.4.0-beta.2. tgz#94f952c9bc992e586cd86e19374d26f701a61923 "
1893
+ integrity sha512-6xyRCREeHQunYAfHa+owpCFuxeWEckLwko0K5zY9FB/X7sVTWiMuH4/u99paQp3xoD9QMeviaFI1ajFipYE8nw ==
1894
1894
dependencies :
1895
- " @admin-bro/design-system" " ^ 1.7.0"
1895
+ " @admin-bro/design-system" " 1.7.0"
1896
1896
" @babel/core" " ^7.10.2"
1897
1897
" @babel/parser" " ^7.10.2"
1898
1898
" @babel/plugin-transform-runtime" " ^7.10.1"
You can’t perform that action at this time.
0 commit comments