Skip to content

Commit c88752c

Browse files
committed
fix retrieval
1 parent ad6a788 commit c88752c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tarkov-data-manager/modules/tarkov-changes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const jsonRequest = async (filename, options) => {
4040
},
4141
signal: options.signal,
4242
}).then(apiResponse => {
43-
if (apiResponse.status !== 'success') {
43+
if (apiResponse.status && apiResponse.status !== 'success') {
4444
return Promise.reject(new Error('API response does not indicate success', {cause: apiResponse}));
4545
}
4646
return apiResponse.response_data;

0 commit comments

Comments
 (0)