Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

minor fix

daniel31x13221930f88d31
diff --git a/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx b/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx
index 2df5c14b..cd20e128 100644
--- a/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx
+++ b/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx
@@ -132,8 +132,8 @@ export default function LinkActions({
<DropdownMenuSeparator />
<DropdownMenuItem
className="text-error"
- onSelect={async (e) => {
- if ((e as any).shiftKey) {
+ onClick={async (e) => {
+ if (e.shiftKey) {
const load = toast.loading(t("deleting"));
await deleteLink.mutateAsync(link.id as number, {
onSettled: (data, error) => {
diff --git a/apps/worker/lib/getLinkBatchFairly.ts b/apps/worker/lib/getLinkBatchFairly.ts
index 7cbdd594..69f58b5c 100644
--- a/apps/worker/lib/getLinkBatchFairly.ts
+++ b/apps/worker/lib/getLinkBatchFairly.ts
@@ -108,13 +108,6 @@ export default async function getLinkBatchFairly({
}
}
- console.log(
- "\x1b[34m%s\x1b[0m",
- `Processing ${
- pickedLinkIds.length
- } links for the following users: ${Array.from(pickedUserIds).join(", ")}`
- );
-
if (pickedLinkIds.length === 0) return [];
const now = new Date();
@@ -135,5 +128,13 @@ export default async function getLinkBatchFairly({
pickedLinkIds.forEach((id, i) => order.set(id, i));
batch.sort((a, b) => order.get(a.id)! - order.get(b.id)!);
+ console.log(
+ "\x1b[34m%s\x1b[0m",
+ `Processing ${batch.length} ${
+ batch.length > 1 ? "links" : "link"
+ } for the following ${
+ pickedUserIds.size > 1 ? "userIds" : "userId"
+ }: ${Array.from(pickedUserIds).join(", ")}`
+ );
return batch;
}