Skip to content

Commit

Permalink
#20 I screwed up, trying that again
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Sep 25, 2023
1 parent af1179e commit fe9e5d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ public async Task RunBeforeAllTests()
services.AddCouchbaseBucket<IConduitBucketProvider>(_config["Couchbase:BucketName"], b =>
{
b
.AddScope("_default")
.AddScope(_config["Couchbase:ScopeName"])
.AddCollection<IConduitTagsCollectionProvider>("Tags");
b
.AddScope("_default")
.AddScope(_config["Couchbase:ScopeName"])
.AddCollection<IConduitArticlesCollectionProvider>("Articles");
b
.AddScope("_default")
.AddScope(_config["Couchbase:ScopeName"])
.AddCollection<IConduitFavoritesCollectionProvider>("Favorites");
b
.AddScope("_default")
.AddScope(_config["Couchbase:ScopeName"])
.AddCollection<IConduitUsersCollectionProvider>("Users");
b
.AddScope("_default")
.AddScope(_config["Couchbase:ScopeName"])
.AddCollection<IConduitFollowsCollectionProvider>("Follows");
});

Expand Down
4 changes: 2 additions & 2 deletions Conduit/Conduit.Web/Articles/Services/CommentsDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public async Task<DataServiceResult<List<CommentListDataView>>> Get(string slug,
}}
}}
FROM {bucket.Name}._default.Comments c2
FROM {bucket.Name}.`{scope.Name}`.`Comments` c2
UNNEST c2 AS c
JOIN `{bucket.Name}`.`{scope.Name}`._default.Users author ON c.authorUsername = META(author).id
JOIN `{bucket.Name}`.`{scope.Name}`.`Users` author ON c.authorUsername = META(author).id
{loggedInJoin}
Expand Down

0 comments on commit fe9e5d7

Please sign in to comment.