Skip to content

Commit e13f6e1

Browse files
committed
fixed eslint import error
1 parent 97a260f commit e13f6e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/libs/actions/applyOnyxUpdatesReliably.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as SequentialQueue from '@libs/Network/SequentialQueue';
33
import CONST from '@src/CONST';
44
import type {OnyxUpdatesFromServer} from '@src/types/onyx';
55
import {handleMissingOnyxUpdates} from './OnyxUpdateManager';
6-
import * as OnyxUpdates from './OnyxUpdates';
6+
import {doesClientNeedToBeUpdated, apply as onyxApply, saveUpdateInformation} from './OnyxUpdates';
77

88
type ApplyOnyxUpdatesReliablyOptions = {
99
clientLastUpdateID?: number;
@@ -30,7 +30,7 @@ export default function applyOnyxUpdatesReliably(updates: OnyxUpdatesFromServer,
3030
if (shouldRunSync) {
3131
handleMissingOnyxUpdates(updates, clientLastUpdateID);
3232
} else {
33-
OnyxUpdates.saveUpdateInformation(updates);
33+
saveUpdateInformation(updates);
3434
}
3535
};
3636

@@ -42,8 +42,8 @@ export default function applyOnyxUpdatesReliably(updates: OnyxUpdatesFromServer,
4242
}
4343

4444
const previousUpdateID = Number(updates.previousUpdateID) ?? CONST.DEFAULT_NUMBER_ID;
45-
if (!OnyxUpdates.doesClientNeedToBeUpdated({previousUpdateID, clientLastUpdateID})) {
46-
OnyxUpdates.apply(updates);
45+
if (!doesClientNeedToBeUpdated({previousUpdateID, clientLastUpdateID})) {
46+
onyxApply(updates);
4747
return;
4848
}
4949

0 commit comments

Comments
 (0)