Unverified Commit dc9f5314 authored by boojack's avatar boojack Committed by GitHub

fix: find latest migration history (#190)

* fix: auth action button

* fix: find latest migration history
parent e330159f
......@@ -72,7 +72,7 @@ func findMigrationHistoryList(ctx context.Context, tx *sql.Tx, find *MigrationHi
FROM
migration_history
WHERE ` + strings.Join(where, " AND ") + `
ORDER BY created_ts DESC
ORDER BY version DESC
`
rows, err := tx.QueryContext(ctx, query, args...)
if err != nil {
......
......@@ -142,7 +142,7 @@ const Auth: React.FC<Props> = () => {
<Only when={!pageLoadingState.isLoading}>
<button
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
onClick={() => (siteHost ? handleSigninBtnsClick() : handleSigninBtnsClick())}
onClick={() => (siteHost ? handleSigninBtnsClick() : handleSignUpAsHostBtnsClick())}
>
<Only when={actionBtnLoadingState.isLoading}>
<Icon.Loader className="img-icon" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment