From 4753dfa4d9c872f4cde02b0d16736890475ba7ff Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 17:15:07 +0900 Subject: [PATCH] oops --- .../app/desktop/views/components/timeline.vue | 2 +- tools/migration/nighthike/4.js | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue index ea8f0053bc..e1f88b62f3 100644 --- a/src/client/app/desktop/views/components/timeline.vue +++ b/src/client/app/desktop/views/components/timeline.vue @@ -96,7 +96,7 @@ export default Vue.extend({ onNote(note) { // サウンドを再生する if ((this as any).os.isEnableSounds) { - const sound = new Audio(`${url}/assets/note.mp3`); + const sound = new Audio(`${url}/assets/post.mp3`); sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 1; sound.play(); } diff --git a/tools/migration/nighthike/4.js b/tools/migration/nighthike/4.js index d77c91ca80..5e12e64055 100644 --- a/tools/migration/nighthike/4.js +++ b/tools/migration/nighthike/4.js @@ -50,8 +50,20 @@ db.drive_files.files.renameCollection('driveFiles.files'); db.drive_files.chunks.renameCollection('driveFiles.chunks'); db.driveFiles.files.update({}, { $rename: { - 'metadata.user_id': 'metadata.userId', + 'metadata.user_id': 'metadata.userId' + } +}, false, true); +db.driveFiles.files.update({ + 'metadata.folder_id': { $ne: null } +}, { + $rename: { 'metadata.folder_id': 'metadata.folderId', + } +}, false, true); +db.driveFiles.files.update({ + 'metadata.properties.average_color': { $ne: null } +}, { + $rename: { 'metadata.properties.average_color': 'metadata.properties.avgColor' } }, false, true);