Skip to content

Commit

Permalink
fixed uuid and sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarm010 committed Mar 13, 2022
1 parent fba1752 commit acb787a
Show file tree
Hide file tree
Showing 4 changed files with 773 additions and 85 deletions.
12 changes: 4 additions & 8 deletions entities/User.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package entities

import (
"errors"
"github.com/google/uuid"
"github.com/jcarm010/kodimerce/datastore"
"github.com/satori/go.uuid"
"golang.org/x/net/context"
)

Expand Down Expand Up @@ -87,14 +87,10 @@ func GetUser(ctx context.Context, email string) (*User, error) {
}

func CreateUserSession(ctx context.Context, email string) (*UserSession, error) {
nUdid, err := uuid.NewV4()
if err != nil {
return nil, err
}

userSession := NewUserSession(nUdid.String(), email)
nUdid := uuid.New().String()
userSession := NewUserSession(nUdid, email)
key := datastore.NewKey(ctx, EntityUserSession, userSession.SessionToken, 0, nil)
_, err = datastore.Put(ctx, key, userSession)
_, err := datastore.Put(ctx, key, userSession)
if err != nil {
return nil, err
}
Expand Down
44 changes: 44 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module github.com/jcarm010/kodimerce

go 1.17

require (
cloud.google.com/go/datastore v1.6.0
cloud.google.com/go/storage v1.21.0
github.com/dustin/gojson v0.0.0-20160307161227-2e71ec9dd5ad
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b
github.com/google/uuid v1.3.0
github.com/ikeikeikeike/go-sitemap-generator v1.0.2
github.com/jcarm010/feeds v0.0.0-20170712012225-6d567e016e14
github.com/pkg/errors v0.9.1
golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000
golang.org/x/net v0.0.0-20220225172249-27dd8689420f
google.golang.org/api v0.71.0
google.golang.org/appengine v1.6.7
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/sendgrid/sendgrid-go.v2 v2.0.0
)

require (
cloud.google.com/go v0.100.2 // indirect
cloud.google.com/go/compute v1.5.0 // indirect
cloud.google.com/go/iam v0.1.1 // indirect
github.com/beevik/etree v1.1.0 // indirect
github.com/clbanning/mxj v1.8.4 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
github.com/imdario/mergo v0.3.7 // indirect
github.com/sendgrid/smtpapi-go v0.6.9 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8 // indirect
google.golang.org/grpc v1.44.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
)
Loading

0 comments on commit acb787a

Please sign in to comment.