🚧 backend: wip initial setup for admin route to delete user (#799)
This commit is contained in:
committed by
Anton Shepilov
parent
185ec5ac5c
commit
16c68f25fd
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user