Skip to content

Commit

Permalink
#19 argh, still not working (CI only, works fine locally)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Sep 25, 2023
1 parent fe9e5d7 commit 2a6b774
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Conduit/Conduit.Web/Articles/Services/CommentsDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ UNNEST c2 AS c
WHERE META(c2).id = $commentsKey;";

var cluster = collection.Scope.Bucket.Cluster;
try
{

// try
// {
//
var results = await cluster.QueryAsync<CommentListDataView>(sql, options =>
{
options.Parameter("commentsKey", GetCommentsKey(slug.GetArticleKey()));
options.Parameter("currentUsername", currentUsername);
options.ScanConsistency(_couchbaseOptions.Value.ScanConsistency);
});
return new DataServiceResult<List<CommentListDataView>>(await results.Rows.ToListAsync(), DataResultStatus.Ok);
}
catch (Exception ex)
{
return new DataServiceResult<List<CommentListDataView>>(null, DataResultStatus.Error);
}
// }
// catch (Exception ex)
// {
// return new DataServiceResult<List<CommentListDataView>>(null, DataResultStatus.Error);
// }
}

private async Task<ulong> GetNextCommentId(string slug)
Expand Down

0 comments on commit 2a6b774

Please sign in to comment.