return secret when creating it
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
|
||||
|
@@ -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})
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user