Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDevAU committed Dec 11, 2023
1 parent db89e5f commit 5dc23aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public async Task<HttpResponseData> Run(

if (model == null)
{
// model = await _client.Bookmarks.Add(data);
var response = await dbContext.Bookmarks.Add(data);
if (response.IsDefined())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public class GetAllBookmarkedFunction(

[Function("GetAllBookmarkedFunction")]
public async Task<HttpResponseData> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)] HttpRequestData req,
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)]
HttpRequestData req,
FunctionContext executionContext)
{
_logger.LogWarning($"HTTP trigger function {nameof(GetAllBookmarkedFunction)} received a request.");
Expand All @@ -36,7 +37,6 @@ public async Task<HttpResponseData> Run(
_logger.LogInformation("Checking for bookmarks by user: {0}", userId);

var bookmarks = await dbContext.Bookmarks.Query<Bookmark>(q => q.Where(w => w.UserId == userId));
// var userBookMarks = await bookmarks.Get<Bookmark>(q => q.UserId == userId);

var bookmarksResult = bookmarks.ToList();
if (bookmarksResult.Count != 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<HttpResponseData> Run(
_logger.LogInformation("Checking for bookmark on rule: {0} and user: {1}", ruleGuid, userId);
var bookmarks =
await dbContext.Bookmarks.Query(q => q.Where(w => w.RuleGuid == ruleGuid && w.UserId == userId));
// var ruleBookMarks = await bookmarks.Get<Bookmark>(q => q.RuleGuid == ruleGuid && q.UserId == userId);

if (bookmarks.Any())
{
return req.CreateJsonResponse(new
Expand Down
2 changes: 1 addition & 1 deletion SSW.Rules.AzFuncs/Functions/Widget/UpdateLatestRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class UpdateLatestRules(ILoggerFactory loggerFactory, IGitHubClient gitHu

[Function("UpdateLatestRules")]
public async Task<HttpResponseData> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)]
[HttpTrigger(AuthorizationLevel.Function, "post", Route = null)]
HttpRequestData req,
FunctionContext executionContext)
{
Expand Down

0 comments on commit 5dc23aa

Please sign in to comment.