Explorar o código

remove unnecessary toString

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
699e11e3e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/interfaces/common.ts

+ 1 - 1
packages/app/src/interfaces/common.ts

@@ -16,6 +16,6 @@ export const isPopulated = <T>(ref: Ref<T>): ref is T & HasObjectId => {
 
 export const getIdForRef = <T>(ref: Ref<T>): string => {
   return isPopulated(ref)
-    ? ref._id.toString()
+    ? ref._id
     : ref;
 };