Skip to content

Commit 40dcf67

Browse files
committed
fix: remove logs
1 parent 32d8b7c commit 40dcf67

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/src/Root.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ const Dashboard = lazy(() => import('./pages/dashboard'));
99
export 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
}

server/db/models/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"`

0 commit comments

Comments
 (0)