Skip to content

Commit

Permalink
feat: return html instead md
Browse files Browse the repository at this point in the history
  • Loading branch information
liruchen32 committed Jul 12, 2024
1 parent 2b32a10 commit fd29e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/news/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func shouldPreserveOrder(field string) bool {

// BuildBioMarkdownOnlyStatement returns statement for rewriting `bio` field with markdown format
func BuildBioMarkdownOnlyStatement() bson.D {
return bson.D{{Key: mongo.StageAddFields, Value: bson.D{{Key: fieldBio, Value: "$" + fieldBio + ".md"}}}}
return bson.D{{Key: mongo.StageAddFields, Value: bson.D{{Key: fieldBio, Value: "$" + fieldBio + ".html"}}}}
}

func ConverStringsToObjectIDs(strs []string) ([]primitive.ObjectID) {
Expand Down

0 comments on commit fd29e9b

Please sign in to comment.