Correct service token telemetry depending on creating entity

This commit is contained in:
Tuan Dang
2023-04-13 22:30:42 +03:00
parent 83ddba29e2
commit 806448a7f9
2 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ const getAuthSTDPayload = async ({
}, {
new: true
})
.select('+encryptedKey +iv +tag').populate('user');
.select('+encryptedKey +iv +tag').populate('user serviceAccount');
if (!serviceTokenData) throw ServiceTokenDataNotFoundError({ message: 'Failed to find service token data' });