mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
fix: field name
This commit is contained in:
parent
2909676ed3
commit
7ab66113ac
@ -86,7 +86,7 @@ func (s *Store) CreateShortcut(ctx context.Context, create *Shortcut) (*Shortcut
|
|||||||
args := []any{create.CreatorID, create.Name, create.Link, create.Description, create.Visibility, create.Tag}
|
args := []any{create.CreatorID, create.Name, create.Link, create.Description, create.Visibility, create.Tag}
|
||||||
placeholder := []string{"?", "?", "?", "?", "?", "?"}
|
placeholder := []string{"?", "?", "?", "?", "?", "?"}
|
||||||
if create.OpenGraphMetadata != nil {
|
if create.OpenGraphMetadata != nil {
|
||||||
set = append(set, "open_graph_metadata")
|
set = append(set, "og_metadata")
|
||||||
openGraphMetadataBytes, err := json.Marshal(create.OpenGraphMetadata)
|
openGraphMetadataBytes, err := json.Marshal(create.OpenGraphMetadata)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user