mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Remove save call from backfilling trusted ips
This commit is contained in:
@@ -572,13 +572,13 @@ export const backfillTrustedIps = async () => {
|
||||
|
||||
const trustedIpsToInsert = workspaceIdsToAddTrustedIp.map((workspaceId) => {
|
||||
return new TrustedIP({
|
||||
workspace: new Types.ObjectId(workspaceId),
|
||||
workspace: workspaceId,
|
||||
ipAddress: "0.0.0.0",
|
||||
type: IPType.IPV4,
|
||||
prefix: 0,
|
||||
isActive: true,
|
||||
comment: "",
|
||||
}).save();
|
||||
});
|
||||
});
|
||||
|
||||
await TrustedIP.insertMany(trustedIpsToInsert);
|
||||
|
||||
Reference in New Issue
Block a user