Skip to content

Commit

Permalink
Set space id to require function
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-pratik-k committed Jul 27, 2023
1 parent 3373d10 commit a1a29e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data/services/leave_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class LeaveService {

Stream<List<Leave>> monthlyLeaveByStartDate(
{required int year, required int month, required String spaceId}) =>
_leaveDb(spaceId: _userManager.currentSpaceId!)
_leaveDb(spaceId: spaceId)
.where(FireStoreConst.leaveStatus,
isEqualTo: LeaveStatus.approved.value)
.where(FireStoreConst.startLeaveDate,
Expand Down

0 comments on commit a1a29e3

Please sign in to comment.