update comment

This commit is contained in:
Hongbo Wu
2023-11-27 11:20:52 +08:00
parent 9d452c099a
commit eb901a534b

View File

@ -231,14 +231,15 @@ export const importer = Sentry.GCPFunction.wrapHttpFunction(
// paginate api calls to the integration
do {
// filter out items that are deleted or archived if the stateToImport is unarchived
// write the list of urls, state and labels to the stream
retrievedData
.filter((row) => {
// filter out items that are deleted
if (row.state === State.DELETED) {
return false
}
// filter out items that archived if the stateToImport is unarchived
return (
stateToImport !== State.UNARCHIVED ||
row.state !== State.ARCHIVED