Refactor: Better type annotations

This commit is contained in:
syuilo
2018-09-18 13:14:17 +09:00
parent 8ba3fb13eb
commit 429bf179dc
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import renderRemove from '../../remote/activitypub/renderer/remove';
import packAp from '../../remote/activitypub/renderer';
import { deliver } from '../../queue';
export async function deliverPinnedChange(userId: mongo.ObjectID, oldId: mongo.ObjectID, newId: mongo.ObjectID) {
export async function deliverPinnedChange(userId: mongo.ObjectID, oldId?: mongo.ObjectID, newId?: mongo.ObjectID) {
const user = await User.findOne({
_id: userId
});