Index: iknow-api/Repository/Implementations/UserRepository.cs
===================================================================
--- iknow-api/Repository/Implementations/UserRepository.cs	(revision 5eb784799acea35b5d5c9141ea54699741bc3d71)
+++ iknow-api/Repository/Implementations/UserRepository.cs	(revision 1e58098a182dd9c4d1bf1b235b61ce1760f23f7c)
@@ -24,5 +24,8 @@
             return await _context.User.FirstOrDefaultAsync(u => u.Email == username);
         }
-
+        public async Task<User?> GetOnlyUserByIdAsync(int id)
+        {
+            return await _context.User.FirstOrDefaultAsync(u => u.Id == id);
+        }
         public async Task AddUserAsync(User user)
         {
