Skip to content

Commit 4f48761

Browse files
committed
chore: Rename MONGO_URL to DB_MONGO_URL
1 parent 9e86b9c commit 4f48761

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ DISCORD_ADMINS=ADMIN_ID_1,ADMIN_ID_2
1414
USE_WEB=true
1515
WEB_PORT=8080
1616
WEB_URL=https://partbot.partman.dev
17+
WEB_GITHUB_SECRET=SECRET_HERE
1718

1819
USE_DB=false
19-
MONGO_URL=URL_HERE
20+
DB_MONGO_URL=URL_HERE

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ the environment variable. The full list of supported env variables is below:
3131
- `PS_OWNER`: The username of the Bot owner. Only affects the default help message and credits.
3232
- `PS_ADMINS`: A comma-separated list of users on PS to give admin access to.
3333
- `DISCORD_TOKEN`: The login token to use for the Discord account. Leave blank to disable Discord.
34-
- `MONGO_URL`: The MongoDB connection URL. Leave blank to disable database access/usage.
34+
- `DB_MONGO_URL`: The MongoDB connection URL. Leave blank to disable database access/usage.
3535

3636
## Running
3737

src/database/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import mongoose, { type Mongoose } from 'mongoose';
33
import { IS_ENABLED } from '@/enabled';
44
import { log } from '@/utils/logger';
55

6-
const connection: Promise<Mongoose> | null = IS_ENABLED.DB ? mongoose.connect(process.env.MONGO_URL!) : null;
6+
const connection: Promise<Mongoose> | null = IS_ENABLED.DB ? mongoose.connect(process.env.DB_MONGO_URL!) : null;
77
if (connection) connection.then(() => log('Connected to database!'));
88
else log('Skipping database...');
99

0 commit comments

Comments
 (0)