)
type User struct {
- key *datastore.Key
+ Email string
+ key *datastore.Key
}
type dbUser struct {
}
return &User{
- key: datastore.NewKey(ctx, "User", email, 0, nil),
+ Email: email,
+ key: datastore.NewKey(ctx, "User", email, 0, nil),
}, nil
}
}
return &User{
- key: keys[0],
+ Email: keys[0].StringID(),
+ key: keys[0],
}, nil
}
return err
}
- log.Debugf(ctx, "ActivitySummary(%q) = %+v", s.OwnerID, summary)
+ log.Debugf(ctx, "ActivitySummary for %s = %+v", u.Email, summary)
return nil
}