mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 07:41:25 +00:00
New admin endpoint to delete data (#359)
This commit is contained in:
@@ -14,9 +14,13 @@ func getStoreKeyPrefix(ctx context.Context) string {
|
||||
tenantId = "micro"
|
||||
}
|
||||
|
||||
tenantId = strings.Replace(strings.Replace(tenantId, "/", "_", -1), "-", "_", -1)
|
||||
return getStoreKeyPrefixForTenent(tenantId)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("user/%s/", tenantId)
|
||||
func getStoreKeyPrefixForTenent(tenantID string) string {
|
||||
tid := strings.Replace(strings.Replace(tenantID, "/", "_", -1), "-", "_", -1)
|
||||
|
||||
return fmt.Sprintf("user/%s/", tid)
|
||||
}
|
||||
|
||||
func generateAccountStoreKey(ctx context.Context, userId string) string {
|
||||
|
||||
Reference in New Issue
Block a user