Skip to content

Commit

Permalink
refactor: update api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Jan 6, 2024
1 parent 8f9c52f commit b58095d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
-H "Content-Type: application/json" \
-H "Referer: https://hey.xyz" \
-d '{"secret": "'"$SECRET"'", "serviceId": "'"$SERVICE_ID"'"}' \
https://api.hey.xyz/internal/railway/triggerDeployments
https://api.hey.xyz/internal/railway/trigger-deployments
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { TEST_URL } from '@utils/constants';
import axios from 'axios';
import { describe, expect, test } from 'vitest';

describe('internal/verified/updateVerified', () => {
describe('internal/verified/update', () => {
test('should update verified status', async () => {
const response = await axios.post(
`${TEST_URL}/internal/verified/updateVerified`,
`${TEST_URL}/internal/verified/update`,
{ enabled: true, id: Math.random().toString() },
{ headers: await getAuthWorkerHeadersForTest() }
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Verify: FC<VerifyProps> = ({ profileId }) => {
const updateVerified = async () => {
toast.promise(
axios.post(
`${HEY_API_URL}/internal/verified/updateVerified`,
`${HEY_API_URL}/internal/verified/update`,
{ enabled: !isVerified, id: profileId },
{ headers: getAuthWorkerHeaders() }
),
Expand Down

0 comments on commit b58095d

Please sign in to comment.