🚧 backend: wip initial setup for admin route to delete user (#799)

This commit is contained in:
Eric Doughty-Papassideris
2025-02-24 01:06:02 +01:00
committed by Anton Shepilov
parent 185ec5ac5c
commit 16c68f25fd
19 changed files with 500 additions and 4 deletions
@@ -131,6 +131,8 @@ export class TestDbService {
identity_provider?: string;
type?: UserType;
preferences?: User["preferences"];
deleted?: boolean;
delete_process_started_epoch?: number;
} = {},
id: string = uuidv1(),
): Promise<User> {
@@ -149,6 +151,8 @@ export class TestDbService {
locale: "en",
timezone: 0,
};
user.deleted = options.deleted ?? false;
user.delete_process_started_epoch = options.delete_process_started_epoch;
//Fixme this is cheating, we should correctly set the cache in internal mode in the code
user.cache.companies = [