1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-17 04:25:27 +02:00

自分の投稿情報をエクスポートできるように (#4144)

* wip

* 正しいJSONを生成するように

* データを整形
This commit is contained in:
syuilo
2019-02-05 19:50:14 +09:00
committed by GitHub
parent ba7e05837c
commit 5db5bbd1cd
8 changed files with 188 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
import deliver from './http/deliver';
import processInbox from './http/process-inbox';
import { exportNotes } from './export-notes';
import { queueLogger } from '../logger';
const handlers: any = {
deliver,
processInbox,
exportNotes,
};
export default (job: any, done: any) => {
const handler = handlers[job.data.type];
if (handler) {
handler(job, done);
} else {
queueLogger.error(`Unknown job: ${job.data.type}`);
done();
}
};