This commit is contained in:
parent
12c9e17c4b
commit
dff031397e
14 changed files with 710 additions and 253 deletions
|
@ -58,9 +58,9 @@ func activityCreate(w http.ResponseWriter, r *http.Request) {
|
|||
// getting the final result
|
||||
func createFromStorage(ctx context.Context, id string) (*activityCreateOut, error) {
|
||||
// log := log.Ctx(ctx)
|
||||
asa := dbgen.ActivitystreamsActivity
|
||||
activity, err := asa.Where(asa.Type.Eq(string(models.ActivityCreate))).
|
||||
Where(asa.Id.Eq(id)).
|
||||
a := dbgen.Activity
|
||||
activity, err := a.Where(a.Type.Eq(string(models.ActivityCreate))).
|
||||
Where(a.Id.Eq(id)).
|
||||
First()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue