8 lines
228 B
TypeScript
8 lines
228 B
TypeScript
import config from '../../../config';
|
|
import { ILocalUser, IUser } from "../../../models/user";
|
|
|
|
export default (object: any, user: ILocalUser | IUser) => ({
|
|
type: 'Undo',
|
|
actor: `${config.url}/users/${user._id}`,
|
|
object
|
|
});
|