Skip to content

feat: move api to go sql branch#30

Open
Destinea wants to merge 3 commits into
feat/golangfrom
feat/golang+sql
Open

feat: move api to go sql branch#30
Destinea wants to merge 3 commits into
feat/golangfrom
feat/golang+sql

Conversation

@Destinea

@Destinea Destinea commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 390017bb1e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread main.py
@@ -1,115 +0,0 @@
import sentry_sdk

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore the production image entrypoint

Deleting main.py leaves the stable container unable to start: .github/workflows/main.yml still selects Dockerfile for stable tags, and that Dockerfile still runs CMD ["python", "main.py"]. Any non-beta release built from this commit will exit immediately with a missing file instead of serving the new Go API.

Useful? React with 👍 / 👎.

set_clan = EXCLUDED.set_clan,
data = EXCLUDED.data,
updated_at = now()
`, fmt.Sprint(asInt64(ticket["server"])), serverAsString(ticket["channel"]), serverAsString(ticket["panel"]), serverAsString(ticket["status"]), serverAsString(ticket["user"]), serverAsString(ticket["set_clan"]), apptypes.Marshal(ticket), ticket["created_at"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the loaded ticket server id

When updating an existing open ticket, openTicketGet/openTicketScan stores ticket["server"] as a string, but this save path converts it with asInt64, which does not handle strings and returns 0. The status/clan update endpoints therefore upsert (server_id=0, channel_id=...) instead of modifying the requested server's ticket, so the API returns success while the original ticket remains unchanged.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf8e5f1b19

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/routes/auth.go
if err := insertEmailVerification(c.UserContext(), a, record); err != nil {
return err
}
return apptypes.JSON(c, fiber.StatusOK, map[string]any{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore email delivery for verification codes

In non-local deployments localCode returns nil, and this handler now stores the verification code but never sends it before telling the user to check their email. That leaves new email registrations unable to complete /verify-email-code because the 6-digit code is neither returned nor delivered; the same missing delivery pattern affects resend/password-reset flows that rely on emailed codes.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants