Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+5
-5
@@ -23,9 +23,9 @@ async function toggleFlag(name: string, target: boolean): Promise<void> {
|
||||
consola.info(`Flag "${name}" is already ${target ? "enabled" : "disabled"}; no-op.`);
|
||||
return;
|
||||
}
|
||||
await prisma.$transaction([
|
||||
prisma.featureFlag.update({ where: { id: existing.id }, data: { enabled: target } }),
|
||||
prisma.featureFlagAudit.create({
|
||||
await prisma.$transaction(async (transaction) => {
|
||||
await transaction.featureFlag.update({ where: { id: existing.id }, data: { enabled: target } });
|
||||
await transaction.featureFlagAudit.create({
|
||||
data: {
|
||||
flagId: existing.id,
|
||||
actorUserId: null,
|
||||
@@ -33,8 +33,8 @@ async function toggleFlag(name: string, target: boolean): Promise<void> {
|
||||
oldValue: { enabled: existing.enabled },
|
||||
newValue: { enabled: target },
|
||||
},
|
||||
}),
|
||||
]);
|
||||
});
|
||||
});
|
||||
await broadcastFlagInvalidation(name);
|
||||
consola.success(`Flag "${name}" → ${target ? "enabled" : "disabled"}.`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user