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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user