Skip to content

Commit cbb80d6

Browse files
Copilotmtrezza
andcommitted
Fix linting issues
Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com>
1 parent 32d44bf commit cbb80d6

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

spec/GridFSBucketStorageAdapter.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ describe_only_db('mongo')('GridFSBucket', () => {
486486

487487
it('should pass custom metadata to MongoClient when configured', async () => {
488488
const customMetadata = 'MyParseServer-v1.0.0';
489-
const gfsAdapter = new GridFSBucketAdapter(databaseURI, {
490-
mongoDBClientMetadata: customMetadata
489+
const gfsAdapter = new GridFSBucketAdapter(databaseURI, {
490+
mongoDBClientMetadata: customMetadata
491491
});
492492
await gfsAdapter._connect();
493493
expect(gfsAdapter._client.s.options.driverInfo.name).toBe(customMetadata);

spec/MongoStorageAdapter.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ describe_only_db('mongo')('MongoStorageAdapter', () => {
10741074

10751075
it('should pass custom metadata to MongoClient when configured', async () => {
10761076
const customMetadata = 'MyParseServer-v1.0.0';
1077-
const adapter = new MongoStorageAdapter({
1077+
const adapter = new MongoStorageAdapter({
10781078
uri: databaseURI,
10791079
mongoOptions: { mongoDBClientMetadata: customMetadata }
10801080
});

src/Adapters/Files/GridFSBucketAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class GridFSBucketAdapter extends FilesAdapter {
5656
version: pkg.version
5757
};
5858
}
59-
59+
6060
this._connectionPromise = MongoClient.connect(this._databaseURI, options).then(
6161
client => {
6262
this._client = client;

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class MongoStorageAdapter implements StorageAdapter {
182182
// parsing and re-formatting causes the auth value (if there) to get URI
183183
// encoded
184184
const encodedUri = formatUrl(parseUrl(this._uri));
185-
185+
186186
// Only use driverInfo if mongoDBClientMetadata option is set
187187
const options = { ...this._mongoOptions };
188188
if (this._mongoDBClientMetadata) {
@@ -191,7 +191,7 @@ export class MongoStorageAdapter implements StorageAdapter {
191191
version: pkg.version
192192
};
193193
}
194-
194+
195195
this.connectionPromise = MongoClient.connect(encodedUri, options)
196196
.then(client => {
197197
// Starting mongoDB 3.0, the MongoClient.connect don't return a DB anymore but a client

0 commit comments

Comments
 (0)