Skip to content

Commit f872203

Browse files
committed
Data migraton - fix to export messages.
1 parent 5b76675 commit f872203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/data_migration/api/data_migration_helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ module.exports = function(my_db) {
518518
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'crash_share', '-q', '{ app_id: "' + appid + '"}', '--out', my_folder]});
519519
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'feedback_widgets', '-q', '{ app_id: "' + appid + '"}', '--out', my_folder]});
520520
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'notes', '-q', '{ app_id: "' + appid + '"}', '--out', my_folder]});
521-
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'messages', '-q', '{ apps: "' + appid + '"}', '--out', my_folder]});
521+
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'messages', '-q', '{ apps: ObjectId("' + appid + '")}', '--out', my_folder]});
522522
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'cohortdata', '-q', '{ a: "' + appid + '"}', '--out', my_folder]});
523523
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'cohorts', '-q', '{ app_id: "' + appid + '"}', '--out', my_folder]});
524524
scripts.push({cmd: 'mongodump', args: [...dbargs, '--collection', 'server_stats_data_points', '-q', '{ a: "' + appid + '"}', '--out', my_folder]});

0 commit comments

Comments
 (0)