mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-08 16:53:08 +02:00
15 lines
298 B
TypeScript
15 lines
298 B
TypeScript
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
|
|
});
|
|
}
|