Refactor (#7394)
* wip * wip * wip * wip * wip * Update define.ts * Update update.ts * Update user.ts * wip * wip * Update request.ts * URL * wip * wip * wip * wip * Update invite.ts * Update create.ts
This commit is contained in:
parent
62cc14c93b
commit
ce340aba7a
109 changed files with 252 additions and 201 deletions
|
|
@ -16,7 +16,7 @@ import { deliverToRelays } from '../relay';
|
|||
* @param user
|
||||
* @param noteId
|
||||
*/
|
||||
export async function addPinned(user: User, noteId: Note['id']) {
|
||||
export async function addPinned(user: { id: User['id']; host: User['host']; }, noteId: Note['id']) {
|
||||
// Fetch pinee
|
||||
const note = await Notes.findOne({
|
||||
id: noteId,
|
||||
|
|
@ -55,7 +55,7 @@ export async function addPinned(user: User, noteId: Note['id']) {
|
|||
* @param user
|
||||
* @param noteId
|
||||
*/
|
||||
export async function removePinned(user: User, noteId: Note['id']) {
|
||||
export async function removePinned(user: { id: User['id']; host: User['host']; }, noteId: Note['id']) {
|
||||
// Fetch unpinee
|
||||
const note = await Notes.findOne({
|
||||
id: noteId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue