From 9d5e4b4979b2132248370a63295c577a7967c269 Mon Sep 17 00:00:00 2001 From: JJTech0130 Date: Mon, 1 Jul 2024 18:36:50 -0400 Subject: [PATCH] format --- pkg/connector/login.go | 4 ++-- pkg/store/session_store.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/connector/login.go b/pkg/connector/login.go index 7420b6a..3fd5989 100644 --- a/pkg/connector/login.go +++ b/pkg/connector/login.go @@ -156,8 +156,8 @@ func (m *MetaCookieLogin) SubmitCookies(ctx context.Context, strCookies map[stri } } - newSession := store.MetaSession { - MetaID: FBID, + newSession := store.MetaSession{ + MetaID: FBID, Cookies: c, } err = q.Insert(ctx, &newSession) diff --git a/pkg/store/session_store.go b/pkg/store/session_store.go index b5b28f8..42e2c96 100644 --- a/pkg/store/session_store.go +++ b/pkg/store/session_store.go @@ -75,4 +75,4 @@ func (q *MetaSessionQuery) Insert(ctx context.Context, session *MetaSession) err func (q *MetaSessionQuery) Delete(ctx context.Context, metaID int64) error { return q.Exec(ctx, `DELETE FROM "meta_session" WHERE meta_id=$1`, metaID) -} \ No newline at end of file +}