mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(federation): ⬆️ Use @lysand-org/federation v2.0.0
This commit is contained in:
parent
47ce60494a
commit
70cd00cfa8
17 changed files with 56 additions and 60 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import type { EntityValidator } from "@lysand-org/federation";
|
||||
import type { ContentFormat } from "@lysand-org/federation/types";
|
||||
import type { Challenge } from "altcha-lib/types";
|
||||
import { relations, sql } from "drizzle-orm";
|
||||
import {
|
||||
|
|
@ -375,8 +375,8 @@ export const Users = pgTable(
|
|||
passwordResetToken: text("password_reset_token"),
|
||||
fields: jsonb("fields").notNull().default("[]").$type<
|
||||
{
|
||||
key: typeof EntityValidator.$ContentFormat;
|
||||
value: typeof EntityValidator.$ContentFormat;
|
||||
key: ContentFormat;
|
||||
value: ContentFormat;
|
||||
}[]
|
||||
>(),
|
||||
endpoints: jsonb("endpoints").$type<Partial<{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue