Skip to content

Commit

Permalink
Merge pull request #303 from carolinaisslaying/main
Browse files Browse the repository at this point in the history
Fixes transfer ownership feature not working, removes hardcoded string
  • Loading branch information
carolinaisslaying authored Feb 15, 2025
2 parents 5841561 + b364b80 commit eac3a0a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "del-website",
"version": "v5.6.14-Release",
"version": "v5.6.15-Release",
"description": "Discord Extreme List, Discord's unbiased list! Official source code for the DEL v5 website!",
"main": "dist/src/app.js",
"directories": {
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Routes/bots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,11 +873,11 @@ router.post(
.findOne({ _id: req.body.newOwner });

if (!newOwnerExists)
return res.status(403).render("status", {
return res.status(422).render("status", {
res,
title: res.__("common.error"),
subtitle: res.__("common.error.user.404"),
status: 404,
subtitle: res.__("common.error.bot.transferOwnership.422"),
status: 422,
type: "Error",
req
});
Expand Down
2 changes: 1 addition & 1 deletion views/partials/cards/botCard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
%>
<div class="control" style="padding-bottom: 1em;">
<div class="tags has-addons">
<span class="tag is-dark">Added to the queue</span>
<span class="tag is-dark"><%= __("page.staff.queue.addedAtTime") %></span>
<span class="tag <%= statusClass %>"><%= timeString %> (UTC), <%= dateString %></span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/templates/bots/view.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@
<br />
<div class="field">
<p class="control has-icons-left has-icons-right">
<input class="input is-rounded" type="text" name="vanity" placeholder="<%= __("page.bots.transferOwner.placeholder") %>" required>
<input class="input is-rounded" type="text" name="newOwner" placeholder="<%= __("page.bots.transferOwner.placeholder") %>" required>
<span class="icon is-small is-left">
<i aria-hidden="true" class="fas fa-link"></i>
</span>
Expand Down

0 comments on commit eac3a0a

Please sign in to comment.