implement AP fetch logs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user