Skip to content

Commit

Permalink
chore: remove configuration from models, prefer env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Thaddeus Kuah <[email protected]>
  • Loading branch information
thaddeuskkr committed Sep 2, 2024
1 parent 5f40c94 commit 52d0421
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ const userSchema = new mongoose.Schema({
connections: connectionsSchema,
});

const config = new mongoose.Schema({
key: { type: String, required: true },
value: { type: String, required: true },
});

const Link = mongoose.model('Link', linkSchema);
const User = mongoose.model('User', userSchema);
const Config = mongoose.model('Config', config);

export { Config, Link, User };
export { Link, User };

0 comments on commit 52d0421

Please sign in to comment.