Skip to content

Commit

Permalink
Bump luxon types
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Dec 18, 2024
1 parent f4878a9 commit 80a8c6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"@types/ioredis": "^4.26.4",
"@types/jest": "^28.1.1",
"@types/long": "4.x.x",
"@types/luxon": "^1.27.0",
"@types/luxon": "^3.4.2",
"@types/node": "^16.0.0",
"@types/node-fetch": "^2.5.10",
"@types/node-schedule": "^2.1.0",
Expand Down
8 changes: 4 additions & 4 deletions plugin-server/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion plugin-server/src/utils/db/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ import { status } from '../../utils/status'
import { areMapsEqual, castTimestampOrNow } from '../../utils/utils'

export function unparsePersonPartial(person: Partial<InternalPerson>): Partial<RawPerson> {
return { ...(person as BasePerson), ...(person.created_at ? { created_at: person.created_at.toISO() } : {}) }
return {
...(person as BasePerson),
...(person.created_at ? { created_at: person.created_at.toISO() ?? undefined } : {}),
}
}

export function escapeQuotes(input: string): string {
Expand Down

0 comments on commit 80a8c6c

Please sign in to comment.