fix lint
This commit is contained in:
@ -20,7 +20,7 @@ export async function addPinned(user: { id: User['id']; host: User['host']; }, n
|
||||
// Fetch pinee
|
||||
const note = await Notes.findOne({
|
||||
id: noteId,
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
if (note == null) {
|
||||
@ -41,7 +41,7 @@ export async function addPinned(user: { id: User['id']; host: User['host']; }, n
|
||||
id: genId(),
|
||||
createdAt: new Date(),
|
||||
userId: user.id,
|
||||
noteId: note.id
|
||||
noteId: note.id,
|
||||
} as UserNotePining);
|
||||
|
||||
// Deliver to remote followers
|
||||
@ -59,7 +59,7 @@ export async function removePinned(user: { id: User['id']; host: User['host']; }
|
||||
// Fetch unpinee
|
||||
const note = await Notes.findOne({
|
||||
id: noteId,
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
if (note == null) {
|
||||
@ -68,7 +68,7 @@ export async function removePinned(user: { id: User['id']; host: User['host']; }
|
||||
|
||||
UserNotePinings.delete({
|
||||
userId: user.id,
|
||||
noteId: note.id
|
||||
noteId: note.id,
|
||||
});
|
||||
|
||||
// Deliver to remote followers
|
||||
|
Reference in New Issue
Block a user