mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
[Refactor] Fix indentation level
This commit is contained in:
parent
3ff24e2227
commit
dd7cb94313
1 changed files with 6 additions and 6 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Reference in a new issue