mirror of
https://github.com/usememos/memos.git
synced 2025-02-15 02:40:53 +01:00
fix: find latest migration history (#190)
* fix: auth action button * fix: find latest migration history
This commit is contained in:
parent
e330159f55
commit
dc9f531447
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user