// Weather location duplication helpers. function buildDuplicateWeatherLocationName(locationName) { return 'Copy of ' + String(locationName || '').trim(); } function buildDuplicateWeatherLocation(location, duplicateName) { return Object.assign({}, location, { id: null, name: duplicateName, last_pulled_at: null, last_pull_error: '', last_response_status: null, last_response_content_type: '', last_response_json: '' }); } module.exports = { buildDuplicateWeatherLocationName, buildDuplicateWeatherLocation };