Skip to content

Commit

Permalink
Merge branch 'Dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteha committed Dec 26, 2019
2 parents ef5e6bc + f5a3dea commit 244feb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin-bro-typeorm",
"version": "0.1.6-alpha.3",
"version": "0.1.6-alpha.4",
"description": "TypeORM adapter for AdminBro",
"keywords": [
"typeorm",
Expand Down
6 changes: 4 additions & 2 deletions src/Property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ export class Property extends BaseProperty
{
if (this.column.type == Number)
type = "number";
if (this.column.type == String)
else if (this.column.type == String)
type = "string";
if (this.column.type == Date)
else if (this.column.type == Date)
type = "datetime";
else if (this.column.type == Boolean)
type = "boolean";
}
else
type = DATA_TYPES[ this.column.type as any ];
Expand Down

0 comments on commit 244feb0

Please sign in to comment.