mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
bring Rosamund back
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
@@ -38,6 +38,7 @@ async function connect(): Promise<Client | undefined> {
|
||||
|
||||
const getClient = await getResource(client.function.GetClient)
|
||||
const instance = await getClient(token, endpoint)
|
||||
console.log('logging in as', email)
|
||||
const me = await instance.findOne(contact.class.EmployeeAccount, { email })
|
||||
if (me !== undefined) {
|
||||
console.log('login: employee account', me)
|
||||
|
||||
Reference in New Issue
Block a user