Skip to content

Commit b87921b

Browse files
authored
Merge pull request #45536 from Expensify/Rory-RemoveAuthWritesHack
[No QA] Remove front-end workaround for authWrites issue
2 parents 2eb51e3 + e2a6f60 commit b87921b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libs/HttpUtils.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ const abortControllerMap = new Map<AbortCommand, AbortController>();
3737
abortControllerMap.set(ABORT_COMMANDS.All, new AbortController());
3838
abortControllerMap.set(ABORT_COMMANDS.SearchForReports, new AbortController());
3939

40-
// Some existing old commands (6+ years) exempted from the auth writes count check
41-
const exemptedCommandsWithAuthWrites: string[] = ['SetWorkspaceAutoReportingFrequency'];
42-
4340
/**
4441
* The API commands that require the skew calculation
4542
*/
@@ -133,7 +130,7 @@ function processHTTPRequest(url: string, method: RequestType = 'get', body: Form
133130
});
134131
}
135132

136-
if (response.jsonCode === CONST.JSON_CODE.MANY_WRITES_ERROR && !exemptedCommandsWithAuthWrites.includes(response.data?.phpCommandName ?? '')) {
133+
if (response.jsonCode === CONST.JSON_CODE.MANY_WRITES_ERROR) {
137134
if (response.data) {
138135
const {phpCommandName, authWriteCommands} = response.data;
139136
// eslint-disable-next-line max-len

0 commit comments

Comments
 (0)