aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/graphql/resolver
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-10-27 03:00:27 +0900
committernsfisis <nsfisis@gmail.com>2025-10-27 03:00:27 +0900
commitba1e0c904f810193f25d4f88cc2bb168f1d625fe (patch)
tree87171f92c37bbe822ef5e4649c74dd7e949d4378 /backend/graphql/resolver
parentc1c7fa92e31f4d89fb68133a1c64a87f762dda6e (diff)
downloadfeedaka-ba1e0c904f810193f25d4f88cc2bb168f1d625fe.tar.gz
feedaka-ba1e0c904f810193f25d4f88cc2bb168f1d625fe.tar.zst
feedaka-ba1e0c904f810193f25d4f88cc2bb168f1d625fe.zip
feat(backend): Make feeds.user_id column non-nullHEADmain
Diffstat (limited to 'backend/graphql/resolver')
-rw-r--r--backend/graphql/resolver/schema.resolvers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/graphql/resolver/schema.resolvers.go b/backend/graphql/resolver/schema.resolvers.go
index cadcd33..0c811c2 100644
--- a/backend/graphql/resolver/schema.resolvers.go
+++ b/backend/graphql/resolver/schema.resolvers.go
@@ -31,6 +31,7 @@ func (r *mutationResolver) AddFeed(ctx context.Context, url string) (*model.Feed
Url: url,
Title: feed.Title,
FetchedAt: time.Now().UTC().Format(time.RFC3339),
+ UserID: int64(1), // TODO
})
if err != nil {
return nil, fmt.Errorf("failed to insert feed: %w", err)