mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: resolved create and update failing for service token
This commit is contained in:
@@ -94,7 +94,7 @@ export const fnSecretBulkInsert = async ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const userActorId = actor && actor.type === ActorType.USER ? actor.actorId : undefined;
|
const userActorId = actor && actor.type === ActorType.USER ? actor.actorId : undefined;
|
||||||
const identityActorId = actor && actor.type !== ActorType.USER ? actor.actorId : undefined;
|
const identityActorId = actor && actor.type === ActorType.IDENTITY ? actor.actorId : undefined;
|
||||||
const actorType = actor?.type || ActorType.PLATFORM;
|
const actorType = actor?.type || ActorType.PLATFORM;
|
||||||
|
|
||||||
const newSecrets = await secretDAL.insertMany(
|
const newSecrets = await secretDAL.insertMany(
|
||||||
@@ -182,7 +182,7 @@ export const fnSecretBulkUpdate = async ({
|
|||||||
actor
|
actor
|
||||||
}: TFnSecretBulkUpdate) => {
|
}: TFnSecretBulkUpdate) => {
|
||||||
const userActorId = actor && actor?.type === ActorType.USER ? actor?.actorId : undefined;
|
const userActorId = actor && actor?.type === ActorType.USER ? actor?.actorId : undefined;
|
||||||
const identityActorId = actor && actor?.type !== ActorType.USER ? actor?.actorId : undefined;
|
const identityActorId = actor && actor?.type === ActorType.IDENTITY ? actor?.actorId : undefined;
|
||||||
const actorType = actor?.type || ActorType.PLATFORM;
|
const actorType = actor?.type || ActorType.PLATFORM;
|
||||||
|
|
||||||
const sanitizedInputSecrets = inputSecrets.map(
|
const sanitizedInputSecrets = inputSecrets.map(
|
||||||
|
|||||||
Reference in New Issue
Block a user