cybergis / cybergis-compute-core

Apache License 2.0
7 stars 6 forks source link

fix for git null bug (#88) #89

Closed alexandermichels closed 1 year ago

alexandermichels commented 1 year ago

Quick fix for #88.

Basically just set secsSinceUpdate to a large value and then in a try block try to check when it was last updated. If you get an error on checking git.updatedAt.getTime() (due to git.updatedAt being null) then it goes to an empty catch block and we assume the large value meaning that we perform an update.