File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,9 @@ const Dashboard = lazy(() => import('./pages/dashboard'));
99export default function Root ( ) {
1010 const { token, loading, config } = useAuthorizer ( ) ;
1111
12- console . log ( config ) ;
1312 useEffect ( ( ) => {
1413 if ( token ) {
1514 const url = new URL ( config . redirectURL || '/app' ) ;
16- console . log ( '=> url' , url ) ;
1715 if ( url . origin !== window . location . origin ) {
1816 window . location . href = config . redirectURL || '/app' ;
1917 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ type Session struct {
55 Key string `json:"_key,omitempty" bson:"_key,omitempty"` // for arangodb
66 ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id"`
77 UserID string `gorm:"type:char(36),index:" json:"user_id" bson:"user_id"`
8- User User `json:"-" bson:"-"`
8+ User User `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"-" bson:"-"`
99 UserAgent string `json:"user_agent" bson:"user_agent"`
1010 IP string `json:"ip" bson:"ip"`
1111 CreatedAt int64 `json:"created_at" bson:"created_at"`
You can’t perform that action at this time.
0 commit comments