Skip to content

Commit bc7ae67

Browse files
authored
Merge pull request #3786 from clairep94/chore_cleanUnreadVars
Chore: 🧹 clean up unused variables to stop lint warnings
2 parents 37fe4d8 + 4fc51ce commit bc7ae67

2 files changed

Lines changed: 1 addition & 90 deletions

File tree

client/common/Button.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { action } from '@storybook/addon-actions';
33

4-
import { Button, ButtonDisplays, ButtonKinds, ButtonTypes } from './Button';
4+
import { Button, ButtonDisplays, ButtonTypes } from './Button';
55
import { GithubIcon, DropdownArrowIcon, PlusIcon } from './icons';
66

77
export default {

server/migrations/emailConsolidation.js

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,6 @@ mongoose.connection.on('error', () => {
3131
* https://mongodb.github.io/node-mongodb-native
3232
*/
3333

34-
const agg = [
35-
// eslint-disable-line
36-
{
37-
$project: {
38-
email: {
39-
$toLower: ['$email']
40-
}
41-
}
42-
},
43-
{
44-
$group: {
45-
_id: '$email',
46-
total: {
47-
$sum: 1
48-
}
49-
}
50-
},
51-
{
52-
$match: {
53-
total: {
54-
$gt: 1
55-
}
56-
}
57-
},
58-
{
59-
$sort: {
60-
total: -1
61-
}
62-
}
63-
];
64-
6534
// steps to make this work
6635
// iterate through the results
6736
// check if any files are on AWS
@@ -202,61 +171,3 @@ async function consolidateAccount(email) {
202171
process.exit(1);
203172
});
204173
}
205-
206-
// let duplicates = [
207-
// "5ce3d936e0f9df0022d8330c",
208-
// "5cff843f091745001e83c070",
209-
// "5d246f5db489e6001eaee6e9"
210-
// ];
211-
// let currentUser = null;
212-
// User.deleteMany({ _id: { $in: duplicates } }).then(() => {
213-
// return User.findOne({ "email": "Silverstar09@hotmail.com" })
214-
// }).then((result) => {
215-
// currentUser = result;
216-
// console.log('Deleted other user accounts.');
217-
// currentUser.email = currentUser.email.toLowerCase();
218-
// return currentUser.save();
219-
// }).then(() => {
220-
// const mailOptions = renderAccountConsolidation({
221-
// body: {
222-
// domain: 'https://editor.p5js.org',
223-
// username: currentUser.username,
224-
// email: currentUser.email
225-
// },
226-
// to: currentUser.email,
227-
// });
228-
229-
// return new Promise((resolve, reject) => {
230-
// mailerService.send(mailOptions, (mailErr, result) => {
231-
// console.log('Sent email.');
232-
// if (mailErr) {
233-
// return reject(mailErr);
234-
// }
235-
// return resolve(result);
236-
// });
237-
// });
238-
// });
239-
240-
// import s3 from '@auth0/s3';
241-
242-
// const client = s3.createClient({
243-
// maxAsyncS3: 20,
244-
// s3RetryCount: 3,
245-
// s3RetryDelay: 1000,
246-
// multipartUploadThreshold: 20971520, // this is the default (20 MB)
247-
// multipartUploadSize: 15728640, // this is the default (15 MB)
248-
// s3Options: {
249-
// accessKeyId: `${process.env.AWS_ACCESS_KEY}`,
250-
// secretAccessKey: `${process.env.AWS_SECRET_KEY}`,
251-
// region: `${process.env.AWS_REGION}`
252-
// },
253-
// });
254-
255-
// const headParams = {
256-
// Bucket: `${process.env.S3_BUCKET}`,
257-
// Key: "5c9de807f6bccf0017da7927/8b9d95ae-7ddd-452a-b398-672392c4ac43.png"
258-
// };
259-
// client.s3.headObject(headParams, (err, data) => {
260-
// console.log(err);
261-
// console.log(data);
262-
// });

0 commit comments

Comments
 (0)