fix(api): 🐛 Fix incorrect relationships being returned (small rewrite)

This commit is contained in:
Jesse Wierzbinski 2024-06-11 13:42:36 -10:00
parent 20d1a5f39e
commit c4da7e1484
No known key found for this signature in database
11 changed files with 2325 additions and 29 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "Relationships" ADD COLUMN "requested_by" boolean DEFAULT false NOT NULL;

File diff suppressed because it is too large Load diff

View file

@ -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
}
]
}

View file

@ -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(),