File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
216216 for ( let i = 0 ; i < 100 ; i ++ ) {
217217 const engine_type = ENGINE_TYPES [ Math . floor ( Math . random ( ) * ENGINE_TYPES . length ) ] . value ;
218218 await admin . resource ( 'cars_mongo' ) . create ( {
219- id : `${ i } ` ,
219+ _id : `${ i } ` ,
220220 model : `${ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] } ${ FICTIONAL_CAR_MODELS_BY_BRAND [ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] ] [ Math . floor ( Math . random ( ) * 4 ) ] } ` ,
221221 price : ( Math . random ( ) * 10000 ) . toFixed ( 2 ) ,
222222 engine_type : engine_type ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default {
3434 *********************************************************************************/
3535 columns : [
3636 {
37- name : 'id ' ,
37+ name : '_id ' ,
3838 type : AdminForthDataTypes . STRING ,
3939 label : 'Identifier' ,
4040 showIn : {
@@ -58,7 +58,7 @@ export default {
5858 inputSuffix : 'USD' ,
5959 allowMinMaxQuery : true ,
6060 editingNote : 'Price is in USD' ,
61- type : AdminForthDataTypes . FLOAT ,
61+ type : AdminForthDataTypes . DECIMAL ,
6262 required : true ,
6363 } ,
6464 {
You can’t perform that action at this time.
0 commit comments