add user profile, profile vibe and trip vibe and social signal
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { prisma } from "@/lib/prisma";
|
||||
import type { Vibe } from "@/app/generated/prisma/enums";
|
||||
|
||||
interface UpsertProfileInput {
|
||||
bio?: string;
|
||||
city?: string;
|
||||
instagram?: string;
|
||||
interests: string[];
|
||||
vibe?: Vibe;
|
||||
}
|
||||
|
||||
export const profileRepo = {
|
||||
@@ -21,12 +23,14 @@ export const profileRepo = {
|
||||
city: data.city,
|
||||
instagram: data.instagram,
|
||||
interests: data.interests,
|
||||
vibe: data.vibe,
|
||||
},
|
||||
update: {
|
||||
bio: data.bio,
|
||||
city: data.city,
|
||||
instagram: data.instagram,
|
||||
interests: data.interests,
|
||||
vibe: data.vibe,
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user