mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
fix typo
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
Column,
|
||||
Entity,
|
||||
Index,
|
||||
OneToMany,
|
||||
OneToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
@@ -39,7 +40,7 @@ export class User extends BaseEntity {
|
||||
@Column()
|
||||
public passwordHash: string;
|
||||
|
||||
@OneToOne(type => Document, document => document.user)
|
||||
@OneToMany(type => Document, document => document.user)
|
||||
public documents: Document[];
|
||||
|
||||
constructor(username: string, email: string) {
|
||||
|
||||
Reference in New Issue
Block a user