mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fix incorrect relationships being returned (small rewrite)
This commit is contained in:
parent
20d1a5f39e
commit
c4da7e1484
11 changed files with 2325 additions and 29 deletions
1
drizzle/0025_violet_susan_delgado.sql
Normal file
1
drizzle/0025_violet_susan_delgado.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "Relationships" ADD COLUMN "requested_by" boolean DEFAULT false NOT NULL;
|
||||
2100
drizzle/meta/0025_snapshot.json
Normal file
2100
drizzle/meta/0025_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -176,6 +176,13 @@
|
|||
"when": 1717810992701,
|
||||
"tag": "0024_lush_aaron_stack",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 25,
|
||||
"version": "7",
|
||||
"when": 1718147685855,
|
||||
"tag": "0025_violet_susan_delgado",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ export const Relationships = pgTable("Relationships", {
|
|||
muting: boolean("muting").notNull(),
|
||||
mutingNotifications: boolean("muting_notifications").notNull(),
|
||||
requested: boolean("requested").notNull(),
|
||||
requestedBy: boolean("requested_by").notNull().default(false),
|
||||
domainBlocking: boolean("domain_blocking").notNull(),
|
||||
endorsed: boolean("endorsed").notNull(),
|
||||
languages: text("languages").array(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue