Skip to content

Commit

Permalink
Optimize backend bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Oct 16, 2023
1 parent cf9e5de commit ab36f26
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/src/artist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { router } from '..';
import { procedureWithAuthToken } from '../auth/middleware';
import { getSpotifyApi } from '../spotify';
import { concatLimit } from 'async';
import { shuffle } from 'lodash';
import shuffle from 'lodash/shuffle';
import { mixpanel } from '../mixpanel';

export const artistRouter = router({
Expand Down
2 changes: 1 addition & 1 deletion backend/src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { router, procedure } from '..';
import { getSpotifyApi } from '../spotify';
import { procedureWithAuthToken, withAuthToken } from './middleware';
import * as jwt from 'jsonwebtoken';
import { isPast } from 'date-fns';
import isPast from 'date-fns/isPast';
import { mixpanel } from '../mixpanel';

function to<T, U = Error>(
Expand Down
1 change: 0 additions & 1 deletion backend/src/playlist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { router } from '..';
import { getSpotifyApi } from '../spotify';
import { procedureWithAuthToken } from '../auth/middleware';
import { z } from 'zod';
import { chunk } from 'lodash';
import { mixpanel } from '../mixpanel';

export const playlistRouter = router({
Expand Down
2 changes: 1 addition & 1 deletion backend/src/track/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ee, router } from '..';
import { getSpotifyApi } from '../spotify';
import { procedureWithAuthToken } from '../auth/middleware';
import { z } from 'zod';
import { chunk } from 'lodash';
import chunk from 'lodash/chunk';
import { mixpanel } from '../mixpanel';

export const trackRouter = router({
Expand Down

0 comments on commit ab36f26

Please sign in to comment.