misskey/src/queue/index.ts
2018-07-27 18:50:15 +09:00

16 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
});
}