Skip to content

Commit

Permalink
fix: links to new dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
greg6775 committed Nov 2, 2023
1 parent d691647 commit d3e857b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export async function getServerURLs(discordId: string) {
const user = await findUser(discordId);
if (!user) return null;
const servers = await db.collection("@bbn/hosting/servers").find({
user: user
user
}).toArray();
return servers.map(server => `https://panel.bbn.one/server/${server.identifier}`).join("\n");
return servers.map(server => server.identifier ? `https://panel.bbn.one/server/${server.identifier}` : `https://bbn.one/hosting?path=servers/${server._id}/`).join("\n");
}

export async function lastLogin(discordId: string) {
Expand Down

0 comments on commit d3e857b

Please sign in to comment.