Skip to content

Commit

Permalink
Import lodash correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed May 1, 2024
1 parent 453c136 commit 8b7a22c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion server/api/create-app.post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'lodash'
import { apps } from '../db/schema'
import { generateId } from '../utils/utils'

Expand Down
4 changes: 2 additions & 2 deletions utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from "lodash"
import _ from "lodash"
import moment from "moment"

export const toOsType = (osType?: "android" | "ios" | null | undefined): OsType => {
Expand Down Expand Up @@ -49,5 +49,5 @@ export const formatDate = (value?: string | null) => {
}

export const formatGroups = (groups: any[] | undefined) => {
return groups && groups.length ? join(groups.map(e => e.artifactsGroups.name), ', ') : '-'
return groups && groups.length ? _.join(groups.map(e => e.artifactsGroups.name), ', ') : '-'
}

0 comments on commit 8b7a22c

Please sign in to comment.