style: satisfy cumulative biome checks
This commit is contained in:
1 parent
cb77b2d3b9
commit
b9c47aa89a
10 files changed
+34
-37
No files matched your search
@@ -155,7 +155,7 @@ async function uniqueSlug(
|
||||
.where(eq(WebsiteArticles.slug, candidate))
|
||||
.limit(1);
|
||||
if (!existing) return candidate;
|
||||
candidate = base + "-" + suffix;
|
||||
candidate = `${base}-${suffix}`;
|
||||
suffix += 1;
|
||||
}
|
||||
}
|
||||
@@ -261,7 +261,7 @@ async function adChange(
|
||||
await activity(
|
||||
context,
|
||||
"ad_create",
|
||||
"Created advertisement #" + id + " (" + image + ")",
|
||||
`Created advertisement #${id} (${image})`,
|
||||
"website_ad",
|
||||
Number(id),
|
||||
);
|
||||
@@ -279,7 +279,7 @@ async function adChange(
|
||||
await activity(
|
||||
context,
|
||||
"ad_delete",
|
||||
"Deleted advertisement #" + id,
|
||||
`Deleted advertisement #${id}`,
|
||||
"website_ad",
|
||||
Number(id),
|
||||
);
|
||||
@@ -297,7 +297,7 @@ async function adChange(
|
||||
await activity(
|
||||
context,
|
||||
"ad_update",
|
||||
"Updated advertisement #" + id + " (" + image + ")",
|
||||
`Updated advertisement #${id} (${image})`,
|
||||
"website_ad",
|
||||
Number(id),
|
||||
);
|
||||
@@ -661,7 +661,7 @@ async function tagChange(
|
||||
await activity(
|
||||
context,
|
||||
"tag_create",
|
||||
"Created tag " + name + " (#" + id + ")",
|
||||
`Created tag ${name} (#${id})`,
|
||||
"tag",
|
||||
Number(id),
|
||||
);
|
||||
@@ -678,7 +678,7 @@ async function tagChange(
|
||||
await activity(
|
||||
context,
|
||||
"tag_delete",
|
||||
"Deleted tag #" + id,
|
||||
`Deleted tag #${id}`,
|
||||
"tag",
|
||||
Number(id),
|
||||
);
|
||||
@@ -696,7 +696,7 @@ async function tagChange(
|
||||
await activity(
|
||||
context,
|
||||
"tag_update",
|
||||
"Updated tag #" + id + (values.name ? " to " + values.name : ""),
|
||||
`Updated tag #${id}${values.name ? ` to ${values.name}` : ""}`,
|
||||
"tag",
|
||||
Number(id),
|
||||
);
|
||||
@@ -838,7 +838,7 @@ async function helpQuestionChange(
|
||||
await activity(
|
||||
context,
|
||||
"help_delete",
|
||||
"Deleted help-center entry #" + id,
|
||||
`Deleted help-center entry #${id}`,
|
||||
"help_center_category",
|
||||
Number(id),
|
||||
);
|
||||
@@ -864,7 +864,7 @@ async function helpQuestionChange(
|
||||
await activity(
|
||||
context,
|
||||
"help_create",
|
||||
"Created help-center entry #" + id + " (" + createValues.name + ")",
|
||||
`Created help-center entry #${id} (${createValues.name})`,
|
||||
"help_center_category",
|
||||
Number(id),
|
||||
);
|
||||
@@ -906,7 +906,7 @@ async function helpQuestionChange(
|
||||
"help_update",
|
||||
"Updated help-center entry #" +
|
||||
id +
|
||||
(values.name ? " (" + values.name + ")" : ""),
|
||||
(values.name ? ` (${values.name})` : ""),
|
||||
"help_center_category",
|
||||
Number(id),
|
||||
);
|
||||
@@ -933,7 +933,7 @@ async function writeableBoxChange(
|
||||
await activity(
|
||||
context,
|
||||
"writeable_box_delete",
|
||||
"Deleted writeable box #" + id,
|
||||
`Deleted writeable box #${id}`,
|
||||
"writeable_box",
|
||||
Number(id),
|
||||
);
|
||||
@@ -949,7 +949,7 @@ async function writeableBoxChange(
|
||||
await activity(
|
||||
context,
|
||||
"writeable_box_toggle",
|
||||
(isActive ? "Activated" : "Hid") + " writeable box #" + id,
|
||||
`${isActive ? "Activated" : "Hid"} writeable box #${id}`,
|
||||
"writeable_box",
|
||||
Number(id),
|
||||
);
|
||||
@@ -979,7 +979,7 @@ async function writeableBoxChange(
|
||||
await activity(
|
||||
context,
|
||||
"writeable_box_create",
|
||||
"Created writeable box " + createValues.title + " (#" + id + ")",
|
||||
`Created writeable box ${createValues.title} (#${id})`,
|
||||
"writeable_box",
|
||||
Number(id),
|
||||
);
|
||||
@@ -1007,9 +1007,7 @@ async function writeableBoxChange(
|
||||
await activity(
|
||||
context,
|
||||
"writeable_box_update",
|
||||
"Updated writeable box #" +
|
||||
id +
|
||||
(values.title ? " (" + values.title + ")" : ""),
|
||||
"Updated writeable box #" + id + (values.title ? ` (${values.title})` : ""),
|
||||
"writeable_box",
|
||||
Number(id),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user