feat: release rdbms to production (#45169)
* fix: add cert to email for when all certs are earned * fix: unhide rdbms from production * fix: cert project input field * feat: add cypress tests * fix: message on project pages to lower expectations * fix: update instructions * fix: add quincy's suggestions * fix: add beta label and reorder * fix: utils test * fix: move rdbms to bottom of settings * fix: cypress tests * Apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix: only drop seeded users webhook tokens Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -153,7 +153,20 @@ MongoClient.connect(MONGOHQ_URL, { useNewUrlParser: true }, (err, client) => {
|
||||
const db = client.db('freecodecamp');
|
||||
const user = db.collection('user');
|
||||
|
||||
const dropWebhookTokens = async function () {
|
||||
await db.collection('WebhookToken').deleteMany({
|
||||
userId: {
|
||||
$in: [
|
||||
ObjectId('5fa2db00a25c1c1fa49ce067'),
|
||||
ObjectId('5bd30e0f1caf6ac3ddddddb5'),
|
||||
ObjectId('5bd30e0f1caf6ac3ddddddb9')
|
||||
]
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
if (process.argv[2] === 'certUser') {
|
||||
dropWebhookTokens();
|
||||
user.deleteMany(
|
||||
{
|
||||
_id: {
|
||||
@ -179,6 +192,7 @@ MongoClient.connect(MONGOHQ_URL, { useNewUrlParser: true }, (err, client) => {
|
||||
}
|
||||
);
|
||||
} else {
|
||||
dropWebhookTokens();
|
||||
user.deleteMany(
|
||||
{
|
||||
_id: {
|
||||
|
Reference in New Issue
Block a user