refactor: variable name

Signed-off-by: Varun Patil <radialapps@gmail.com>
dexie
Varun Patil 2023-10-01 08:46:16 -07:00
parent a14f2febb6
commit 9f246ff58b
1 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ export default defineComponent({
}
// EXIF update values
const exifUpdates = new Map<number, IExif>();
const exifs = new Map<number, IExif>();
for (const p of this.photos!) {
// Basic EXIF fields
const raw: IExif = JSON.parse(JSON.stringify(exifResult));
@ -192,7 +192,7 @@ export default defineComponent({
raw.CreateDate = date;
}
exifUpdates.set(p.fileid, raw);
exifs.set(p.fileid, raw);
}
// Update exif fields
@ -202,7 +202,7 @@ export default defineComponent({
try {
// Update EXIF if required
const raw = exifUpdates.get(fileid) ?? {};
const raw = exifs.get(fileid) ?? {};
if (Object.keys(raw).length > 0) {
await axios.patch<any>(API.IMAGE_SETEXIF(fileid), { raw });
dirty = true;