Skip to content

Commit

Permalink
style: fix lint from Automattic#12067
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jul 20, 2022
1 parent e9ad0b8 commit a3b373e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/schema.test.js
Expand Up @@ -2815,7 +2815,7 @@ describe('schema', function() {

assert.ok({}.toString());
});

it('enable defining virtual paths by using schema constructor (gh-11908)', async function() {
function get() {return this.email.slice(this.email.indexOf('@') + 1);}
function set(v) { this.email = [this.email.slice(0, this.email.indexOf('@')), v].join('@');}
Expand Down
4 changes: 2 additions & 2 deletions types/mongooseoptions.d.ts
Expand Up @@ -79,8 +79,8 @@ declare module 'mongoose' {
| stream.Writable
| ((collectionName: string, methodName: string, ...methodArgs: any[]) => void);

/**
* If `true`, adds a `id` virtual to all schemas unless overwritten on a per-schema basis.
/**
* If `true`, adds a `id` virtual to all schemas unless overwritten on a per-schema basis.
* @defaultValue true
*/
id?: boolean;
Expand Down

0 comments on commit a3b373e

Please sign in to comment.