From 06eb12d107f2605cae0f14884de04058c02d29f7 Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 23 May 2024 17:38:22 -0400 Subject: chore: package updates and verify --- back-end/src/Endpoints/BookmarkEndpoint.cs | 31 ++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'back-end') diff --git a/back-end/src/Endpoints/BookmarkEndpoint.cs b/back-end/src/Endpoints/BookmarkEndpoint.cs index 19f5118..ae2932d 100644 --- a/back-end/src/Endpoints/BookmarkEndpoint.cs +++ b/back-end/src/Endpoints/BookmarkEndpoint.cs @@ -131,7 +131,13 @@ namespace SimpleBookmark.Endpoints { //Get the collection of bookmarks List list = Bookmarks.ListRental.Rent(); - await Bookmarks.GetUserPageAsync(list, entity.Session.UserID, 0, (int)BmConfig.PerPersonQuota); + + await Bookmarks.GetUserPageAsync( + collection: list, + userId: entity.Session.UserID, + page: 0, + limit: (int)BmConfig.PerPersonQuota + ); //Alloc memory stream for output VnMemoryStream output = new(MemoryUtil.Shared, 16 * 1024, false); @@ -205,13 +211,13 @@ namespace SimpleBookmark.Endpoints //Get bookmarks BookmarkEntry[] bookmarks = await Bookmarks.SearchBookmarksAsync( - entity.Session.UserID, + userId : entity.Session.UserID, query, tags, (int)limit, (int)offset, - entity.EventCancellation - ); + cancellation: entity.EventCancellation + ); //Return result return VirtualOkJson(entity, bookmarks); @@ -248,11 +254,11 @@ namespace SimpleBookmark.Endpoints * and the entry does not already exist by the desired url. */ int result = await Bookmarks.AddSingleIfNotExists( - entity.Session.UserID, - newBookmark, - entity.RequestedTimeUtc.DateTime, - BmConfig.PerPersonQuota, - entity.EventCancellation + userId: entity.Session.UserID, + entry: newBookmark, + now: entity.RequestedTimeUtc.DateTime, + maxRecords: BmConfig.PerPersonQuota, + cancellation: entity.EventCancellation ); if (webm.Assert(result > -1, "You have reached your bookmark quota")) @@ -386,7 +392,12 @@ namespace SimpleBookmark.Endpoints try { //Try to update the records - ERRNO result = await Bookmarks.AddBulkAsync(sanitized, entity.Session.UserID, entity.RequestedTimeUtc, entity.EventCancellation); + ERRNO result = await Bookmarks.AddBulkAsync( + bookmarks: sanitized, + userId: entity.Session.UserID, + now: entity.RequestedTimeUtc, + cancellation: entity.EventCancellation + ); webm.Result = $"Successfully added {result} of {batch.Length} bookmarks"; webm.Success = true; -- cgit From c7c9e8a441e99e1dc79e2a690d83281af463d817 Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 23 May 2024 17:40:09 -0400 Subject: update backend deps --- back-end/src/SimpleBookmark.csproj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'back-end') diff --git a/back-end/src/SimpleBookmark.csproj b/back-end/src/SimpleBookmark.csproj index 71fe747..382d141 100644 --- a/back-end/src/SimpleBookmark.csproj +++ b/back-end/src/SimpleBookmark.csproj @@ -33,11 +33,11 @@ - - - - - + + + + + -- cgit