mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Fix error
This commit is contained in:
parent
84f5308ada
commit
e301d0c4f1
@ -5,7 +5,7 @@ import create from '../../../../services/blocking/create';
|
||||
import define from '../../define';
|
||||
import { ApiError } from '../../error';
|
||||
import { getUser } from '../../common/getters';
|
||||
import { Blockings, NoteWatchings } from '../../../../models';
|
||||
import { Blockings, NoteWatchings, Users } from '../../../../models';
|
||||
|
||||
export const meta = {
|
||||
stability: 'stable',
|
||||
@ -89,5 +89,5 @@ export default define(meta, async (ps, user) => {
|
||||
noteUserId: blockee.id
|
||||
});
|
||||
|
||||
return await Blockings.pack(blockee.id, user);
|
||||
return await Users.pack(blockee.id, user);
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ import deleteBlocking from '../../../../services/blocking/delete';
|
||||
import define from '../../define';
|
||||
import { ApiError } from '../../error';
|
||||
import { getUser } from '../../common/getters';
|
||||
import { Blockings } from '../../../../models';
|
||||
import { Blockings, Users } from '../../../../models';
|
||||
|
||||
export const meta = {
|
||||
stability: 'stable',
|
||||
@ -84,5 +84,5 @@ export default define(meta, async (ps, user) => {
|
||||
// Delete blocking
|
||||
await deleteBlocking(blocker, blockee);
|
||||
|
||||
return await Blockings.pack(blockee.id, user);
|
||||
return await Users.pack(blockee.id, user);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user