mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: upgrade version 0.13.1
(#1754)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user