From f0e62b1d2a675ade314f0de50317246b16deac1b Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 26 Jul 2023 13:41:51 +0800 Subject: [PATCH] use lodash instead of standalone lodash.debounce package --- packages/api/package.json | 2 +- packages/api/src/routers/notification_router.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/package.json b/packages/api/package.json index 7d96bda57..afac267fb 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -73,6 +73,7 @@ "knex": "2.4.2", "knex-stringcase": "^1.4.2", "linkedom": "^0.14.9", + "lodash": "^4.17.21", "luxon": "^3.2.1", "microsoft-cognitiveservices-speech-sdk": "^1.22.0", "nanoid": "^3.1.25", @@ -117,7 +118,6 @@ "@types/highlightjs": "^9.12.2", "@types/intercom-client": "^2.11.8", "@types/jsonwebtoken": "^8.5.0", - "@types/lodash.debounce": "^4.0.6", "@types/luxon": "^1.25.0", "@types/mocha": "^8.2.2", "@types/nanoid": "^3.0.0", diff --git a/packages/api/src/routers/notification_router.ts b/packages/api/src/routers/notification_router.ts index bab1da46b..464702269 100644 --- a/packages/api/src/routers/notification_router.ts +++ b/packages/api/src/routers/notification_router.ts @@ -1,7 +1,7 @@ import cors from 'cors' import express from 'express' import * as jwt from 'jsonwebtoken' -import debounce from 'lodash.debounce' +import { debounce } from 'lodash' import { env } from '../env' import { Claims } from '../resolvers/types' import { getDeviceTokensByUserId } from '../services/user_device_tokens'