Fix error

This commit is contained in:
syuilo 2019-04-15 18:08:57 +09:00
parent 190a5e175b
commit d2d991ff34
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import create from '../../../../services/blocking/create';
import define from '../../define'; import define from '../../define';
import { ApiError } from '../../error'; import { ApiError } from '../../error';
import { getUser } from '../../common/getters'; import { getUser } from '../../common/getters';
import { Blockings, NoteWatchings } from '../../../../models'; import { Blockings, NoteWatchings, Users } from '../../../../models';
export const meta = { export const meta = {
stability: 'stable', stability: 'stable',
@ -89,5 +89,5 @@ export default define(meta, async (ps, user) => {
noteUserId: blockee.id noteUserId: blockee.id
}); });
return await Blockings.pack(blockee.id, user); return await Users.pack(blockee.id, user);
}); });

View File

@ -5,7 +5,7 @@ import deleteBlocking from '../../../../services/blocking/delete';
import define from '../../define'; import define from '../../define';
import { ApiError } from '../../error'; import { ApiError } from '../../error';
import { getUser } from '../../common/getters'; import { getUser } from '../../common/getters';
import { Blockings } from '../../../../models'; import { Blockings, Users } from '../../../../models';
export const meta = { export const meta = {
stability: 'stable', stability: 'stable',
@ -84,5 +84,5 @@ export default define(meta, async (ps, user) => {
// Delete blocking // Delete blocking
await deleteBlocking(blocker, blockee); await deleteBlocking(blocker, blockee);
return await Blockings.pack(blockee.id, user); return await Users.pack(blockee.id, user);
}); });