fix(organization): apply path methods for get-full-organization

This commit is contained in:
Bereket Engida
2024-12-15 09:03:57 +03:00
parent bf522217d7
commit 0ed294539e
3 changed files with 4 additions and 4 deletions

View File

@@ -44,7 +44,6 @@ export const auth = betterAuth({
}, },
emailVerification: { emailVerification: {
async sendVerificationEmail({ user, url }) { async sendVerificationEmail({ user, url }) {
console.log("Sending verification email to", user.email);
const res = await resend.emails.send({ const res = await resend.emails.send({
from, from,
to: to || user.email, to: to || user.email,
@@ -53,7 +52,6 @@ export const auth = betterAuth({
}); });
console.log(res, user.email); console.log(res, user.email);
}, },
sendOnSignUp: true,
}, },
account: { account: {
accountLinking: { accountLinking: {
@@ -125,7 +123,6 @@ export const auth = betterAuth({
}/accept-invitation/${data.id}`, }/accept-invitation/${data.id}`,
}), }),
}); });
console.log(res, data.email);
}, },
}), }),
twoFactor({ twoFactor({

View File

@@ -725,7 +725,7 @@ export const createInternalAdapter = (
field: "createdAt", field: "createdAt",
direction: "desc", direction: "desc",
}, },
limit: 10, limit: 1,
}); });
const lastVerification = verification[0]; const lastVerification = verification[0];
return lastVerification as Verification | null; return lastVerification as Verification | null;

View File

@@ -151,6 +151,9 @@ export const organizationClient = <O extends OrganizationClientOptions>(
activeMember, activeMember,
}; };
}, },
pathMethods: {
"/organization/get-full-organization": "GET",
},
atomListeners: [ atomListeners: [
{ {
matcher(path) { matcher(path) {