test(services): add DbHandler usage in user.service.ts
This commit includes: - The usage of `DbHandler.factorize` with sample values - Testing log trace to monitor the result and fields of factored user data Issue: #18 Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
parent
ea3b7aa68b
commit
5163d79056
@ -75,6 +75,19 @@ async function getUserFromIdService(id: string): Promise<IDbUser | ISError> {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
DbHandler.factorize({
|
||||
values: {
|
||||
id: '011010101',
|
||||
username: 'avnyr',
|
||||
age: 42,
|
||||
is_admin: true
|
||||
},
|
||||
actionName: "Testing"
|
||||
}).then((result)=>{
|
||||
logger.trace(`\n\n> ${result._valuesArray.join(', ')}\n\n> ${result.totalFields}\n\n> ${result._keysTemplate}\n`)
|
||||
})*/
|
||||
|
||||
//ToTest
|
||||
/**
|
||||
* Registers a new user.
|
||||
|
Loading…
x
Reference in New Issue
Block a user