Skip to content

Commit

Permalink
fixing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ivorfarshore committed Aug 8, 2023
1 parent f23eca3 commit e8f6f13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/common/config/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ export const envValidationSchema = Joi.object({
AWS_REGION: Joi.string().required(),
SENDGRID_API_KEY: Joi.string().required(),
SENDGRID_EMAIL: Joi.string().required(),
ALGOLIA_API_KEY: Joi.string().required(),
ALGOLIA_APPLICATION_ID: Joi.string().required(),
});
2 changes: 1 addition & 1 deletion src/modules/marketplace/marketplace.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { buildAlgoliaQueryForSongs } from './queries/marketplace.queries';
import { PaginatedDto } from '../../common/pagination/paginated-dto';
import { SongFiltersDto } from './dto/songs.filter.dto';
import { validate } from 'uuid';
import { findOneNotSoldSong, findOneSong } from '../song/queries/song.queries';
import { findOneNotSoldSong } from '../song/queries/song.queries';
import { AlgoliaClient } from '../../helpers/algolia/algolia.client';

@Injectable()
Expand Down
7 changes: 6 additions & 1 deletion src/scripts/song-index.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ import { User } from '../modules/user/user.entity';
import { Listing } from '../modules/listing/listing.entity';
import { Album } from '../modules/album/album.entity';
import { File } from '../modules/file/file.entity';
import { existsSync } from 'fs';

dotenv.config();
dotenv.config({
path: existsSync(`.env.${process.env.MODE}`)
? `.env.${process.env.MODE}`
: '.env',
});

const run = async () => {
const connection = await createConnection({
Expand Down

0 comments on commit e8f6f13

Please sign in to comment.