Taichi Masuyama 4 лет назад
Родитель
Сommit
2c04c54291
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/server/util/compare-objectId.ts

+ 2 - 2
packages/app/src/server/util/compare-objectId.ts

@@ -1,9 +1,9 @@
 import mongoose from 'mongoose';
 
-type TObjectId = mongoose.Types.ObjectId;
+type IObjectId = mongoose.Types.ObjectId;
 const ObjectId = mongoose.Types.ObjectId;
 
-export const filterIdsByIds = (_arr1: TObjectId[], _arr2: TObjectId[]): TObjectId[] => {
+export const filterIdsByIds = (_arr1: IObjectId[], _arr2: IObjectId[]): IObjectId[] => {
   // cast to string
   const arr1 = _arr1.map(e => e.toString());
   const arr2 = _arr2.map(e => e.toString());