mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 00:27:30 +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) => {
|
const trustedIpsToInsert = workspaceIdsToAddTrustedIp.map((workspaceId) => {
|
||||||
return new TrustedIP({
|
return new TrustedIP({
|
||||||
workspace: new Types.ObjectId(workspaceId),
|
workspace: workspaceId,
|
||||||
ipAddress: "0.0.0.0",
|
ipAddress: "0.0.0.0",
|
||||||
type: IPType.IPV4,
|
type: IPType.IPV4,
|
||||||
prefix: 0,
|
prefix: 0,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
comment: "",
|
comment: "",
|
||||||
}).save();
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
await TrustedIP.insertMany(trustedIpsToInsert);
|
await TrustedIP.insertMany(trustedIpsToInsert);
|
||||||
|
|||||||
Reference in New Issue
Block a user