Skip to content

Commit f95e10e

Browse files
authored
Merge pull request #3262 from Countly/fix/dashboard-dimensions-fix
fix for widget marking script
2 parents dcac929 + e65c707 commit f95e10e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var pluginManager = require('../../../../plugins/pluginManager.js');
2+
const fs = require('fs');
3+
var path = require('path');
4+
5+
console.log("Upgrading app_users data");
6+
7+
pluginManager.dbConnection().then(async (countlyDb) => {
8+
await countlyDb.collection('widgets').updateMany(
9+
{ gridsize: { $exists : false }},
10+
{
11+
$set: { gridsize: 4 }
12+
}
13+
);
14+
countlyDb.close();
15+
});

bin/upgrade/22.06/scripts/reset_upgraded_custom_dashboards.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pluginManager.dbConnection().then(async (countlyDb) => {
3030
}
3131
if (doReset) {
3232
await countlyDb.collection('widgets').updateMany(
33-
{ gridsize: { $exists : false }},
33+
{ gridsize: 4 },
3434
{
3535
$mul: { 'size.0': 3 },
3636
$unset: { position: 1 },

0 commit comments

Comments
 (0)