This commit is contained in:
syuilo 2019-04-16 01:11:20 +09:00
parent bce8c5a315
commit 400cdf0f26
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ export class AccessToken {
})
public hash: string;
@RelationId((self: AccessToken) => self.user)
@Index()
@Column(id())
public userId: User['id'];
@ManyToOne(type => User, {