Skip to content

Commit

Permalink
Merge pull request #92 from coronasafe/dataoverwrite-s3
Browse files Browse the repository at this point in the history
fix data overwrite in s3
  • Loading branch information
mathew-alex authored Sep 7, 2023
2 parents 1821648 + d129177 commit a0c9437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/controller/helper/makeDataDump.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const makeDataDumpToJson = async (

const params = {
Bucket: s3BucketName,
Key: assetExternalId,
Key: `${assetExternalId}--${new Date().getTime()}.json`,
Body: JSON.stringify(dataDump),
};

Expand Down
6 changes: 3 additions & 3 deletions src/views/pages/beds/edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
<h2 class="my-3 py-3 text-2xl border-b">Update Monitor Preset<h2>
<div class="flex flex-col mt-2">
<label for="preset_x">Preset X</label>
<input class="px-2 py-1 border-2 border-black" type="number" placeholder="Preset X" name="preset_x" id="preset_x" value="<%- bed.monitorPreset.x %>" />
<input class="px-2 py-1 border-2 border-black" step="any" type="number" placeholder="Preset X" name="preset_x" id="preset_x" value="<%- bed.monitorPreset.x %>" />
</div>
<div class="flex flex-col mt-2">
<label for="preset_y">Preset Y</label>
<input class="px-2 py-1 border-2 border-black" type="number" placeholder="Preset Y" name="preset_y" id="preset_y" value="<%- bed.monitorPreset.y %>" />
<input class="px-2 py-1 border-2 border-black" step="any" type="number" placeholder="Preset Y" name="preset_y" id="preset_y" value="<%- bed.monitorPreset.y %>" />
</div>
<div class="flex flex-col mt-2">
<label for="preset_zoom">Preset Zoom</label>
<input class="px-2 py-1 border-2 border-black" type="number" placeholder="Preset Zoom" name="preset_zoom" id="preset_zoom" value="<%- bed.monitorPreset.zoom %>" />
<input class="px-2 py-1 border-2 border-black" step="any" type="number" placeholder="Preset Zoom" name="preset_zoom" id="preset_zoom" value="<%- bed.monitorPreset.zoom %>" />
</div>

<div class="flex flex-col mt-2">
Expand Down

0 comments on commit a0c9437

Please sign in to comment.