This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from "express"; | |
import setupTypeORM from "./setuptypeorm"; | |
var app = express(); | |
// Creates the try connect loop. | |
setupTypeORM(); | |
app.use(...); | |
// Start other middleware and routes... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getConnection, Repository } from "typeorm"; | |
import { User } from "../entity/User"; | |
export default class UserService { | |
private userRepository: Repository<User>; | |
constructor() {} | |
private getUserRepository(): Repository<User> { |
OlderNewer