Skip to content
Snippets Groups Projects
Commit 8d8c7c9a authored by syuilo⭐️'s avatar syuilo⭐️ Committed by GitHub
Browse files

[Refactor] Fix indentation level

parent b3aab22b
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,8 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
_id: mediaId,
user_id: user._id
}, {
_id: true
});
_id: true
});
if (entity === null) {
return rej('file not found');
......@@ -79,10 +79,10 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
const latestPost = await Post.findOne({
user_id: user._id
}, {
sort: {
_id: -1
}
});
sort: {
_id: -1
}
});
// 直近と同じRepost対象かつ引用じゃなかったらエラー
if (latestPost &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment