chore: upgrade version 0.13.1 (#1754)

This commit is contained in:
boojack
2023-05-27 09:09:41 +08:00
committed by GitHub
parent 93d608f050
commit 2e34ce90a1
16 changed files with 48 additions and 303 deletions

View File

@ -6,6 +6,7 @@ import (
"fmt"
"strconv"
"strings"
"time"
"github.com/usememos/memos/common"
)
@ -90,6 +91,10 @@ func (s *Store) CreateMemo(ctx context.Context, create *MemoMessage) (*MemoMessa
}
defer tx.Rollback()
if create.CreatedTs == 0 {
create.CreatedTs = time.Now().Unix()
}
query := `
INSERT INTO memo (
creator_id,