diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 21:27:09 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 21:27:09 +0900 |
| commit | c4c20bee7c58ea7330dbc890b9564bd100ac6e25 (patch) | |
| tree | 2f73ce46b5f0abe1417dad110ffc23c53155a8fe /src/models | |
| parent | refactor: Use Set (diff) | |
| download | sharkey-c4c20bee7c58ea7330dbc890b9564bd100ac6e25.tar.gz sharkey-c4c20bee7c58ea7330dbc890b9564bd100ac6e25.tar.bz2 sharkey-c4c20bee7c58ea7330dbc890b9564bd100ac6e25.zip | |
wip #6441
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/entities/note-reaction.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/entities/note-reaction.ts b/src/models/entities/note-reaction.ts index 69bb663fd3..674dc3639e 100644 --- a/src/models/entities/note-reaction.ts +++ b/src/models/entities/note-reaction.ts @@ -23,7 +23,7 @@ export class NoteReaction { onDelete: 'CASCADE' }) @JoinColumn() - public user: User | null; + public user?: User | null; @Index() @Column(id()) @@ -33,7 +33,7 @@ export class NoteReaction { onDelete: 'CASCADE' }) @JoinColumn() - public note: Note | null; + public note?: Note | null; // TODO: 対象noteのuserIdを非正規化したい(「受け取ったリアクション一覧」のようなものを(JOIN無しで)実装したいため) |