You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preferred method for creating new instances in TypeORM is to use the .create method. For the most part, we've created instances using new (e.g. new Semester() for making new semester instances). We should, for consistency purposes, change the addAcademicYear function to create new instances using the TypeORM .create method instead.
natalynyu
changed the title
Update semester service's addAcademicYear functions to use TypeORM create method
Update semester service's addAcademicYear function to use TypeORM create method
Feb 16, 2023
The preferred method for creating new instances in TypeORM is to use the
.create
method. For the most part, we've created instances usingnew
(e.g.new Semester()
for making new semester instances). We should, for consistency purposes, change theaddAcademicYear
function to create new instances using the TypeORM.create
method instead.TypeORM repository documentation: https://github.com/typeorm/typeorm/blob/master/docs/repository-api.md
The text was updated successfully, but these errors were encountered: