Skip to content

Commit 043f77f

Browse files
committedJan 26, 2025
fix: property 'tenantId' does not exist on type 'IEmployeeAvailabilityCreateInput[]'
1 parent 413bf4e commit 043f77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/lib/employee-availability/commands/handlers/employee-availability.bulk.create.handler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class EmployeeAvailabilityBulkCreateHandler implements ICommandHandler<Em
2020
*/
2121
public async execute(command: EmployeeAvailabilityBulkCreateCommand): Promise<IEmployeeAvailability[]> {
2222
const { input } = command;
23-
const tenantId = RequestContext.currentTenantId() ?? input.tenantId;
23+
const tenantId = RequestContext.currentTenantId();
2424

2525
// Prepare employee availability records with tenantId
2626
const employeeAvailabilities = input.map(item =>

0 commit comments

Comments
 (0)