mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
Add tags query to secrets api
This commit is contained in:
@@ -289,8 +289,7 @@ export const getSecrets = async (req: Request, res: Response) => {
|
|||||||
|
|
||||||
|
|
||||||
const { workspaceId, environment, tagSlugs } = req.query;
|
const { workspaceId, environment, tagSlugs } = req.query;
|
||||||
const tagNamesList = typeof tagSlugs === 'string' ? tagSlugs.split(',') : [];
|
const tagNamesList = typeof tagSlugs === 'string' && tagSlugs !== '' ? tagSlugs.split(',') : [];
|
||||||
|
|
||||||
let userId = "" // used for getting personal secrets for user
|
let userId = "" // used for getting personal secrets for user
|
||||||
let userEmail = "" // used for posthog
|
let userEmail = "" // used for posthog
|
||||||
if (req.user) {
|
if (req.user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user