Skip to content

Commit

Permalink
🐛 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Aug 2, 2024
1 parent f9bc4e2 commit 1faf9bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const formSchema = z.object({
path: ["confirmPassword"],
});

const ResetPasswordForm = ({ token }) => {
const ResetPasswordForm = ({ token }: {token: string}) => {
const router = useRouter();
const { func } = useResetPassword();
const [showPassword, setShowPassword] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/hooks/create/useCreateBatchLinkedUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface ILinkedUserDto {
}
const useCreateBatchLinkedUser = () => {
const add = async (linkedUserData: ILinkedUserDto) => {
const response = await fetch(`${config.API_URL}/linked-users/internal/batch`, {
const response = await fetch(`${config.API_URL}/linked_users/internal/batch`, {
method: 'POST',
body: JSON.stringify(linkedUserData),
headers: {
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/hooks/create/useCreateWebhook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface IWebhookDto {
}
const useCreateWebhook = () => {
const add = async (data: IWebhookDto) => {
const response = await fetch(`${config.API_URL}/webhook/internal`, {
const response = await fetch(`${config.API_URL}/webhooks/internal`, {
method: 'POST',
body: JSON.stringify(data),
headers: {
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/hooks/delete/useDeleteWebhook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface IWebhookDto {

const useDeleteWebhook = () => {
const remove = async (webhookData: IWebhookDto) => {
const response = await fetch(`${config.API_URL}/webhook/internal/${webhookData.id_webhook}`, {
const response = await fetch(`${config.API_URL}/webhooks/internal/${webhookData.id_webhook}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/hooks/update/useUpdateWebhookStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface IWebhookUpdateDto {
}
const useUpdateWebhookStatus = () => {
const update = async (data: IWebhookUpdateDto) => {
const response = await fetch(`${config.API_URL}/webhook/internal/${data.id}`, {
const response = await fetch(`${config.API_URL}/webhooks/internal/${data.id}`, {
method: 'PUT',
body: JSON.stringify({active: data.active}),
headers: {
Expand Down

0 comments on commit 1faf9bc

Please sign in to comment.