Send actor in Delete

This commit is contained in:
mei23
2018-08-25 14:52:35 +09:00
parent a39aaf6eb1
commit ac474f3884
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
export default (object: any) => ({
import config from '../../../config';
import { ILocalUser } from "../../../models/user";
export default (object: any, user: ILocalUser) => ({
type: 'Delete',
actor: `${config.url}/users/${user._id}`,
object
});