return secret when creating it
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-11 15:58:33 +11:00
parent 91143f2628
commit 17aa04c1ea
3 changed files with 5 additions and 5 deletions

View File

@@ -103,9 +103,9 @@ steps:
- name: rebuild-cache-with-filesystem
image: meltwater/drone-cache
pull: true
# when:
# event:
# - tag
when:
event:
- tag
settings:
backend: "filesystem"
#debug: true

View File

@@ -141,7 +141,7 @@ func StoreSecret(c *gin.Context) {
return
}
c.JSON(http.StatusOK, gin.H{"message": "secret stored successfully"})
c.JSON(http.StatusOK, gin.H{"message": "secret stored successfully", "data": s})
}
/*

View File

@@ -40,7 +40,7 @@ type Identifiable interface {
GetId() int
}
// AppendIfNotExists requires a struct to implement the GetId() function
// AppendIfNotExists requires a struct to implement the GetId() method
// Then we can use this function to avoid creating duplicate entries in the slice
func AppendIfNotExists[T Identifiable](slice []T, element T) []T {
for _, existingElement := range slice {