Merge branch 'dev' of github.com:smart-chain-fr/leCoffre into dev

This commit is contained in:
OxSaitama 2023-07-25 14:14:37 +02:00
commit 23ac893d3b
2 changed files with 2 additions and 1 deletions

View File

@ -42,5 +42,5 @@ COPY --from=builder --chown=lecoffreuser leCoffre/src/common/databases ./src/com
USER lecoffreuser
CMD ["npm", "run", "start"]
CMD ["npm", "run", "api:start"]
EXPOSE 3001

View File

@ -8,6 +8,7 @@ export default class CronService {
constructor(private mailchimpService: MailchimpService) {}
public async sendMails() {
const cronJob = new CronJob("*/15 * * * * *", async () => {
try {
await this.mailchimpService.sendEmails();