summaryrefslogtreecommitdiff
path: root/src/services/i
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/services/i
parentrefactor: Use Set (diff)
downloadsharkey-c4c20bee7c58ea7330dbc890b9564bd100ac6e25.tar.gz
sharkey-c4c20bee7c58ea7330dbc890b9564bd100ac6e25.tar.bz2
sharkey-c4c20bee7c58ea7330dbc890b9564bd100ac6e25.zip
wip #6441
Diffstat (limited to 'src/services/i')
-rw-r--r--src/services/i/pin.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/i/pin.ts b/src/services/i/pin.ts
index 1ff5476b40..f727a10fb6 100644
--- a/src/services/i/pin.ts
+++ b/src/services/i/pin.ts
@@ -37,7 +37,7 @@ export async function addPinned(user: User, noteId: Note['id']) {
throw new IdentifiableError('23f0cf4e-59a3-4276-a91d-61a5891c1514', 'That note has already been pinned.');
}
- await UserNotePinings.save({
+ await UserNotePinings.insert({
id: genId(),
createdAt: new Date(),
userId: user.id,