Skip to content

Commit d8525c3

Browse files
author
Frantz Kati
committed
fix(mail): fix mail casing
1 parent b1a3a34 commit d8525c3

File tree

8 files changed

+6
-11
lines changed

8 files changed

+6
-11
lines changed

packages/mail/src/MailManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131

3232
import { Mailer } from './Mailer'
3333
import { BaseMailer } from './base-mailer'
34-
import { prettyPrint } from './helpers-xo/prettyPrint'
34+
import { prettyPrint } from './helpers/prettyPrint'
3535

3636
import { Config } from '@tensei/common'
3737
/**

packages/mail/src/drivers/Mailgun.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
MailgunDriverContract,
2121
} from '@tensei/mail'
2222

23-
import { MailgunTransport } from '../transports-xo/Mailgun'
23+
import { MailgunTransport } from '../transports/Mailgun'
2424

2525
/**
2626
* Ses driver to send email using ses

packages/mail/src/drivers/Sparkpost.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
SparkPostDriverContract,
2121
} from '@tensei/mail'
2222

23-
import { SparkPostTransport } from '../transports-xo/SparkPost'
23+
import { SparkPostTransport } from '../transports/SparkPost'
2424

2525
/**
2626
* Ses driver to send email using ses

packages/mail/src/transports-xo/Mailgun.ts renamed to packages/mail/src/transports/Mailgun.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Config } from '@tensei/common'
1313
import { MailgunConfig } from '@tensei/mail'
1414

1515
import { ObjectBuilder } from '../utils'
16-
import { EmailTransportException } from '../exceptions-xo/EmailTransportException'
16+
import { EmailTransportException } from '../exceptions/EmailTransportException'
1717

1818
/**
1919
* Mailgun transport for node mailer. Uses the `/message.mime` to send MIME

packages/mail/src/transports-xo/SparkPost.ts renamed to packages/mail/src/transports/SparkPost.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Config } from '@tensei/common'
1414
import { SparkPostConfig } from '@tensei/mail'
1515

1616
import { ObjectBuilder } from '../utils'
17-
import { EmailTransportException } from '../exceptions-xo/EmailTransportException'
17+
import { EmailTransportException } from '../exceptions/EmailTransportException'
1818

1919
/**
2020
* Sparkpost transport for node mailer. Uses the `/message.mime` to send MIME

packages/rest/src/populate-helpers.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ export const parseQueryToFindOptions = (
4545
}
4646

4747
if (query.populate) {
48-
if (typeof query.populate === 'object') {
49-
const stringifiedQuery = qs.stringify(query.populate, { encodeValuesOnly: true })
50-
findOptions.populate = qs.parse(stringifiedQuery, { arrayLimit: 100, depth: 15 })
51-
} else {
52-
findOptions.populate = query.populate.split(',')
53-
}
48+
findOptions.populate = query.populate.split(',')
5449
}
5550

5651
if (query.fields) {

0 commit comments

Comments
 (0)