forked from Yara724/api
fixed many bugs and step issues
This commit is contained in:
@@ -19,7 +19,12 @@ export function blameCaseTouchesClient(doc: any, clientKey: string): boolean {
|
||||
}
|
||||
|
||||
export function claimCaseTouchesClient(doc: any, clientKey: string): boolean {
|
||||
return String(doc?.owner?.userClientKey ?? "") === String(clientKey);
|
||||
const id = String(clientKey);
|
||||
const owner = doc?.owner as
|
||||
| { clientId?: unknown; userClientKey?: unknown }
|
||||
| undefined;
|
||||
const tenantId = owner?.clientId ?? owner?.userClientKey;
|
||||
return String(tenantId ?? "") === id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user