mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Fix not working routes
This commit is contained in:
parent
f7abe06a60
commit
df939a6a7a
8 changed files with 146 additions and 69 deletions
|
|
@ -1,13 +1,16 @@
|
|||
import type { findManyStatuses, Status } from "~database/entities/Status";
|
||||
import type { findManyUsers, User } from "~database/entities/User";
|
||||
import type { Notification } from "~database/entities/Notification";
|
||||
import type {
|
||||
findManyNotifications,
|
||||
Notification,
|
||||
} from "~database/entities/Notification";
|
||||
import type { db } from "~drizzle/db";
|
||||
|
||||
export async function fetchTimeline<T extends User | Status | Notification>(
|
||||
model:
|
||||
| typeof findManyStatuses
|
||||
| typeof findManyUsers
|
||||
| typeof db.query.notification.findMany,
|
||||
| typeof findManyNotifications,
|
||||
args:
|
||||
| Parameters<typeof findManyStatuses>[0]
|
||||
| Parameters<typeof findManyUsers>[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue