summaryrefslogtreecommitdiff
path: root/src/queue/index.ts
blob: 5a48dbe648b17a35bc5e81da5ce66b4b00c71724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import http from './processors/http';
import { ILocalUser } from '../models/user';

export function createHttpJob(data: any) {
	return http({ data }, () => {});
}

export function deliver(user: ILocalUser, content: any, to: any) {
	createHttpJob({
		type: 'deliver',
		user,
		content,
		to
	});
}