mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-12-15 19:34:25 +00:00
9 lines
234 B
TypeScript
9 lines
234 B
TypeScript
import config from '../../../config';
|
|
import { ILocalUser } from '../../../models/user';
|
|
|
|
export default (user: ILocalUser, target: any, object: any) => ({
|
|
type: 'Add',
|
|
actor: `${config.url}/users/${user._id}`,
|
|
target,
|
|
object
|
|
});
|