Files
pulse-signage/src/web/routes/data-sources/weather/duplicate.js
T
lzstealth 3960931ebe
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m53s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 34s
Add onboarding weather and template gradients
2026-08-28 20:05:23 +01:00

23 lines
551 B
JavaScript

// 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
};