fix: check if lastActivity is “truthy”

We do this rather than checking that it’s not an empty string to make sure we capture the case where it might be undefined.

Signed-off-by: Zee V. (Philip) <zee@vall.in>
This commit is contained in:
Zee V. (Philip)
2022-05-16 15:53:36 +02:00
parent bad907d794
commit 7819f995de
@@ -110,7 +110,7 @@ export class GitLabDiscoveryProcessor implements CatalogProcessor {
};
const lastActivity = (await this.cache.get(this.getCacheKey())) as string;
if (lastActivity !== '') {
if (lastActivity) {
opts.last_activity_after = lastActivity;
}