Skip to content
#

typeorm

Here are 2,697 public repositories matching this topic...

ToolJet
Navaneeth-pk
Navaneeth-pk commented Oct 13, 2021

Description

ES2015 provides a default class constructor if one is not specified. As such, it is unnecessary to provide an empty constructor or one that simply delegates into its parent class, as in the following examples:

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → [deepsource.io/gh/ToolJet/ToolJet/issue/JS-0358/occurren

alex996
alex996 commented Oct 5, 2021

To reproduce:

  1. Create a table with a date column (for example, "date_of_birth" date not null)
  2. Make an insert (I'm using mikro-orm and passing in "1983-09-12")
  3. Select the record and log the model object

Expected: dateOfBirth: '1983-09-12' as a String
Actual: dateOfBirth: 1983-09-12T00:00:00.000Z as a Date

When I follow these steps with an actual Postgres

Improve this page

Add a description, image, and links to the typeorm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the typeorm topic, visit your repo's landing page and select "manage topics."

Learn more