implement AP fetch logs
This commit is contained in:
parent
cc2edae7ab
commit
81944b3bdf
11 changed files with 395 additions and 95 deletions
|
|
@ -82,6 +82,7 @@ import {
|
|||
MiWebhook,
|
||||
NoteEdit,
|
||||
SkApContext,
|
||||
SkApFetchLog,
|
||||
SkApInboxLog,
|
||||
} from './_.js';
|
||||
import type { DataSource } from 'typeorm';
|
||||
|
|
@ -134,6 +135,12 @@ const $apContextRepository: Provider = {
|
|||
inject: [DI.db],
|
||||
};
|
||||
|
||||
const $apFetchLogsRepository: Provider = {
|
||||
provide: DI.apFetchLogsRepository,
|
||||
useFactory: (db: DataSource) => db.getRepository(SkApFetchLog).extend(miRepository as MiRepository<SkApFetchLog>),
|
||||
inject: [DI.db],
|
||||
};
|
||||
|
||||
const $apInboxLogsRepository: Provider = {
|
||||
provide: DI.apInboxLogsRepository,
|
||||
useFactory: (db: DataSource) => db.getRepository(SkApInboxLog).extend(miRepository as MiRepository<SkApInboxLog>),
|
||||
|
|
@ -541,6 +548,7 @@ const $noteScheduleRepository: Provider = {
|
|||
$avatarDecorationsRepository,
|
||||
$latestNotesRepository,
|
||||
$apContextRepository,
|
||||
$apFetchLogsRepository,
|
||||
$apInboxLogsRepository,
|
||||
$noteFavoritesRepository,
|
||||
$noteThreadMutingsRepository,
|
||||
|
|
@ -617,6 +625,7 @@ const $noteScheduleRepository: Provider = {
|
|||
$avatarDecorationsRepository,
|
||||
$latestNotesRepository,
|
||||
$apContextRepository,
|
||||
$apFetchLogsRepository,
|
||||
$apInboxLogsRepository,
|
||||
$noteFavoritesRepository,
|
||||
$noteThreadMutingsRepository,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue