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

View File

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

View File

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