mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 00:27:35 +00:00
patch service token migration backwards with mongo
This commit is contained in:
committed by
Akhil Mohan
parent
9677836b76
commit
e28416b50b
@@ -1432,8 +1432,6 @@ const main = async () => {
|
||||
postgresTableName: TableName.ServiceToken,
|
||||
returnKeys: ["id"],
|
||||
preProcessing: async (doc) => {
|
||||
const id = uuidV4();
|
||||
|
||||
const projectKvRes = await projectKv
|
||||
.get(doc.workspace.toString())
|
||||
.catch(() => null);
|
||||
@@ -1443,7 +1441,7 @@ const main = async () => {
|
||||
if (!userId) return;
|
||||
|
||||
return {
|
||||
id,
|
||||
id: doc._id.toString(),
|
||||
projectId: doc.workspace.toString(),
|
||||
name: doc.name,
|
||||
createdBy: userId,
|
||||
|
||||
Reference in New Issue
Block a user