mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor: 🚚 Organize code into sub-packages, instead of a single large package
This commit is contained in:
parent
79742f47dc
commit
a6d3ebbeef
366 changed files with 942 additions and 833 deletions
|
|
@ -1,10 +1,8 @@
|
|||
import { Media, Note, type User } from "@versia/kit/db";
|
||||
import { Notes } from "@versia/kit/tables";
|
||||
import { config } from "@versia-server/config";
|
||||
import { and, eq, inArray } from "drizzle-orm";
|
||||
import { Feed } from "feed";
|
||||
import { Media } from "~/classes/database/media";
|
||||
import { Note } from "~/classes/database/note";
|
||||
import type { User } from "~/classes/database/user";
|
||||
import { config } from "~/config";
|
||||
import { Notes } from "~/drizzle/schema";
|
||||
|
||||
export const getFeed = async (user: User, page = 0): Promise<Feed> => {
|
||||
const notes = await Note.manyFromSql(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue