mirror of
https://github.com/usememos/memos.git
synced 2025-02-19 12:50:41 +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
|
FROM
|
||||||
migration_history
|
migration_history
|
||||||
WHERE ` + strings.Join(where, " AND ") + `
|
WHERE ` + strings.Join(where, " AND ") + `
|
||||||
ORDER BY created_ts DESC
|
ORDER BY version DESC
|
||||||
`
|
`
|
||||||
rows, err := tx.QueryContext(ctx, query, args...)
|
rows, err := tx.QueryContext(ctx, query, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -142,7 +142,7 @@ const Auth: React.FC<Props> = () => {
|
|||||||
<Only when={!pageLoadingState.isLoading}>
|
<Only when={!pageLoadingState.isLoading}>
|
||||||
<button
|
<button
|
||||||
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
|
className={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}
|
||||||
onClick={() => (siteHost ? handleSigninBtnsClick() : handleSigninBtnsClick())}
|
onClick={() => (siteHost ? handleSigninBtnsClick() : handleSignUpAsHostBtnsClick())}
|
||||||
>
|
>
|
||||||
<Only when={actionBtnLoadingState.isLoading}>
|
<Only when={actionBtnLoadingState.isLoading}>
|
||||||
<Icon.Loader className="img-icon" />
|
<Icon.Loader className="img-icon" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user