Skip to content

Commit 88ab5a3

Browse files
committed
Is large changes
1 parent f1b04a3 commit 88ab5a3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/redux/auth/auth_middleware.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
192192
NextDispatcher next) async {
193193
final action = dynamicAction as RefreshData;
194194
final state = store.state;
195+
final company = state.company;
195196

196197
if (state.isSaving || state.isLoading) {
197198
print('Skipping refresh request - pending request');
@@ -210,7 +211,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
210211
TokenEntity.unobscureToken(prefs.getString(kSharedPrefToken)) ??
211212
'TOKEN';
212213

213-
final updatedAt = action.clearData
214+
final updatedAt = action.clearData && !company.isLarge
214215
? 0
215216
: ((state.userCompanyState.lastUpdated - kMillisecondsToRefreshData) /
216217
1000)
@@ -226,7 +227,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
226227
includeStatic: action.includeStatic || state.staticState.isStale,
227228
)
228229
.then((data) {
229-
if (action.clearData) {
230+
if (action.clearData && !company.isLarge) {
230231
store.dispatch(ClearData());
231232
}
232233
store.dispatch(LoadAccountSuccess(

lib/redux/expense/expense_middleware.dart

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ Middleware<AppState> _loadExpenses(ExpenseRepository repository) {
224224
store.dispatch(LoadExpensesRequest());
225225
repository.loadList(store.state.credentials).then((data) {
226226
store.dispatch(LoadExpensesSuccess(data));
227-
228227
if (action.completer != null) {
229228
action.completer.complete(null);
230229
}

windows/flutter/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ add_custom_command(
9191
${FLUTTER_TOOL_ENVIRONMENT}
9292
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
9393
windows-x64 $<CONFIG>
94+
VERBATIM
9495
)
9596
add_custom_target(flutter_assemble DEPENDS
9697
"${FLUTTER_LIBRARY}"

0 commit comments

Comments
 (0)