mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-08 00:36:15 -05:00
Pre compute compatibility scores for faster profile lookup
This commit is contained in:
@@ -273,8 +273,8 @@ export const API = (_apiTypeCheck = {
|
||||
rateLimited: true,
|
||||
props: z.object({userId: z.string()}),
|
||||
returns: {} as {
|
||||
profile: Profile
|
||||
compatibleProfiles: Profile[]
|
||||
// profile: Profile
|
||||
// compatibleProfiles: Profile[]
|
||||
profileCompatibilityScores: {
|
||||
[userId: string]: CompatibilityScore
|
||||
}
|
||||
@@ -358,6 +358,9 @@ export const API = (_apiTypeCheck = {
|
||||
props: z.object({
|
||||
id: z.number(),
|
||||
}),
|
||||
returns: {} as {
|
||||
status: 'success'
|
||||
},
|
||||
summary: 'Delete a compatibility answer',
|
||||
tag: 'Compatibility',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user