fix: find latest migration history (#190)

* fix: auth action button

* fix: find latest migration history
This commit is contained in:
boojack 2022-09-02 00:01:08 +08:00 committed by GitHub
parent e330159f55
commit dc9f531447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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" />