mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-05 18:07:27 -08:00
10f8c35dbb
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import { Service } from 'typedi';
|
|
import { DataSource, Repository } from 'typeorm';
|
|
import { User } from '../entities/User';
|
|
|
|
@Service()
|
|
export class UserRepository extends Repository<User> {
|
|
constructor(dataSource: DataSource) {
|
|
super(User, dataSource.manager);
|
|
}
|
|
}
|