Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Conversation

@ch4insmoker
Copy link

This pull request fixes delete account option

@itzCozi itzCozi requested a review from Copilot May 7, 2025 16:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes the delete account option by ensuring that the HTTP request uses the DELETE method.

  • Introduces the "DELETE" HTTP method in the API call for user account deletion.
  • Confirms correct usage of authentication headers and base URL.

account: AccountWithToken,
): Promise<UserResponse> {
return ofetch<UserResponse>(`/users/${account.userId}`, {
method: "DELETE",
Copy link

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider extracting the HTTP method string to a constant or an enum to avoid magic strings and improve maintainability.

Suggested change
method: "DELETE",
method: HttpMethod.DELETE,

Copilot uses AI. Check for mistakes.
@itzCozi
Copy link
Member

itzCozi commented May 7, 2025

I wanna merge this did u test that it works?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants