fix: prettier fix

This commit is contained in:
mannilakash committed 2026-03-11 16:53:51 -04:00
1 parent 78f5ce180b
commit 22bcb74653
1 file changed
+11 -8
@@ -20,17 +20,20 @@ export async function migrateStatusPageTypeToArray(): Promise<void> {
} }
// Find all status pages where `type` is a string (not yet migrated) // Find all status pages where `type` is a string (not yet migrated)
const result = await StatusPageModel.updateMany({ const result = await StatusPageModel.updateMany(
$expr: {
$eq: [{ $type: "$type" }, "string"], // only scalar string, not existing array
}
}, [
{ {
$set: { $expr: {
type: ["$type"], $eq: [{ $type: "$type" }, "string"], // only scalar string, not existing array
}, },
}, },
]); [
{
$set: {
type: ["$type"],
},
},
]
);
if (result.modifiedCount === 0) { if (result.modifiedCount === 0) {
logger.info({ service: SERVICE_NAME, message: "No StatusPage documents needed migration" }); logger.info({ service: SERVICE_NAME, message: "No StatusPage documents needed migration" });