events initated first endpoint tested
This commit is contained in:
@@ -16,7 +16,7 @@ from sqlalchemy import (
|
||||
from sqlalchemy.orm import mapped_column, relationship, Mapped
|
||||
|
||||
from Services.PostgresDb import CrudCollection
|
||||
# from config import ApiStatic
|
||||
from config import ApiStatic
|
||||
|
||||
from ApiLayers.ApiLibrary.date_time_actions.date_functions import system_arrow
|
||||
from ApiLayers.ApiLibrary.extensions.select import (
|
||||
@@ -204,7 +204,7 @@ class Users(CrudCollection, SelectAction):
|
||||
return created_user
|
||||
|
||||
def get_employee_and_duty_details(self):
|
||||
from Schemas import Employees, Duties
|
||||
from ApiLayers.Schemas import Employees, Duties
|
||||
|
||||
db_session = self.new_session()
|
||||
found_person = People.filter_one(
|
||||
@@ -244,7 +244,7 @@ class Users(CrudCollection, SelectAction):
|
||||
}
|
||||
|
||||
def get_main_domain_and_other_domains(self, get_main_domain: bool = True):
|
||||
from Schemas import MongoQueryIdentity
|
||||
from ApiLayers.Schemas import MongoQueryIdentity
|
||||
|
||||
query_engine = MongoQueryIdentity(company_uuid=self.related_company)
|
||||
domain_via_user = query_engine.get_domain_via_user(user_uu_id=str(self.uu_id))
|
||||
@@ -391,7 +391,7 @@ class People(CrudCollection, SelectAction):
|
||||
|
||||
@classmethod
|
||||
def create_action(cls, data: InsertPerson, token):
|
||||
from Schemas import Duties
|
||||
from ApiLayers.Schemas import Duties
|
||||
|
||||
token_duties_id, token_company_id = (
|
||||
token.selected_company.duty_id,
|
||||
|
||||
Reference in New Issue
Block a user