MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / _getUpdatedTime

Function _getUpdatedTime

client/src/containers/SharedChart.jsx:148–155  ·  view source on GitHub ↗
(chart)

Source from the content-addressed store, hash-verified

146 }, [chart]);
147
148 const _getUpdatedTime = (chart) => {
149 const updatedAt = chart.chartDataUpdated || chart.lastAutoUpdate;
150 if (moment().diff(moment(updatedAt), "days") > 1) {
151 return moment(updatedAt).calendar();
152 }
153
154 return moment(updatedAt).fromNow();
155 };
156
157 const _onAddFilter = async (condition) => {
158 let found = false;

Callers 1

SharedChartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected