@@ -83,7 +83,7 @@ export async function loginWithPhone(phone: string, code?: string, inviteCode?:
// 处理邀请关系
if (inviteCode) {
- const shareRecord = await prisma.shareRecord.findUnique({
+ const shareRecord = await prisma.shareRecord.findFirst({
where: { shareCode: inviteCode },
});
if (shareRecord) {