Taichi Masuyama 4 年 前
コミット
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';
 import mongoose from 'mongoose';
 
 
-type TObjectId = mongoose.Types.ObjectId;
+type IObjectId = mongoose.Types.ObjectId;
 const ObjectId = 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
   // cast to string
   const arr1 = _arr1.map(e => e.toString());
   const arr1 = _arr1.map(e => e.toString());
   const arr2 = _arr2.map(e => e.toString());
   const arr2 = _arr2.map(e => e.toString());