summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes/reposts.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-06 02:58:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-06 02:58:29 +0900
commit9b41023c43add194d69259e0a8a8c323aa44c778 (patch)
treeae7c01a2e0cded0709833c50da0a7f8256261243 /src/server/api/endpoints/notes/reposts.ts
parentwip (diff)
downloadsharkey-9b41023c43add194d69259e0a8a8c323aa44c778.tar.gz
sharkey-9b41023c43add194d69259e0a8a8c323aa44c778.tar.bz2
sharkey-9b41023c43add194d69259e0a8a8c323aa44c778.zip
wip
Diffstat (limited to 'src/server/api/endpoints/notes/reposts.ts')
-rw-r--r--src/server/api/endpoints/notes/reposts.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/notes/reposts.ts b/src/server/api/endpoints/notes/reposts.ts
index 043a653e83..118e684a87 100644
--- a/src/server/api/endpoints/notes/reposts.ts
+++ b/src/server/api/endpoints/notes/reposts.ts
@@ -5,7 +5,7 @@ import { ILocalUser } from '../../../../models/user';
/**
* Show a renotes of a note
*/
-module.exports = (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
+export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
// Get 'noteId' parameter
const [noteId, noteIdErr] = $.type(ID).get(params.noteId);
if (noteIdErr) return rej('invalid noteId param');