summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-21 21:27:09 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-21 21:27:09 +0900
commitc4c20bee7c58ea7330dbc890b9564bd100ac6e25 (patch)
tree2f73ce46b5f0abe1417dad110ffc23c53155a8fe /src/models
parentrefactor: Use Set (diff)
downloadsharkey-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.ts4
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無しで)実装したいため)