Browse Source

fix: backend get users output type

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
ebddb8e47d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/apps/web/models/users.py

+ 1 - 1
backend/apps/web/models/users.py

@@ -73,7 +73,7 @@ class UsersTable:
         else:
             return None
 
-    def get_users(self, skip: int = 0, limit: int = 50) -> Optional[UserModel]:
+    def get_users(self, skip: int = 0, limit: int = 50) -> List[UserModel]:
         return [
             UserModel(**user)
             for user in list(