mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 05:58:53 -05:00
fix: empty config projects (#4391)
This commit is contained in:
@@ -52,6 +52,22 @@ async function runMigration(): Promise<void> {
|
||||
await Promise.all(updateOrganizationPromises);
|
||||
|
||||
console.log(`Updated ${updateOrganizationPromises.length.toString()} organizations`);
|
||||
|
||||
const updatedemptyConfigProjects = await transactionPrisma.project.updateMany({
|
||||
where: {
|
||||
config: {
|
||||
equals: {},
|
||||
},
|
||||
},
|
||||
data: {
|
||||
config: {
|
||||
channel: null,
|
||||
industry: null,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
console.log(`Updated ${updatedemptyConfigProjects.count.toString()} projects with empty config`);
|
||||
},
|
||||
{
|
||||
timeout: TRANSACTION_TIMEOUT,
|
||||
|
||||
Reference in New Issue
Block a user