Fixed about me on portfolio page
This commit is contained in:
@@ -33,7 +33,7 @@ func (a Author) HTML() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *BlogApp) AboutMe(ctx context.Context) (*Author, error) {
|
func (b *BlogApp) AboutMe(ctx context.Context) (*Author, error) {
|
||||||
res := b.authCol.FindOne(ctx, bson.M{"_id": "caleb_gardner"})
|
res := b.authCol.FindOne(ctx, bson.M{"_id": "BelacDarkstorm"})
|
||||||
if res.Err() != nil {
|
if res.Err() != nil {
|
||||||
log.Println("error getting about me:", res.Err())
|
log.Println("error getting about me:", res.Err())
|
||||||
if res.Err() == mongo.ErrNoDocuments {
|
if res.Err() == mongo.ErrNoDocuments {
|
||||||
|
|||||||
Reference in New Issue
Block a user