b9cb6d1c10
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
import config from '@/config/index.js';
|
|
import { User } from '@/models/entities/user.js';
|
|
|
|
export default (user: { id: User['id'] }, target: any, object: any) => ({
|
|
type: 'Remove',
|
|
actor: `${config.url}/users/${user.id}`,
|
|
target,
|
|
object
|
|
});
|