Skip to content

Commit 6498c59

Browse files
cleanup
1 parent 1b549ba commit 6498c59

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

pkg/utils/submission.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import (
55
"fmt"
66
"github.com/CodeChefVIT/cookoff-10.0-be/pkg/db"
77
"github.com/google/uuid"
8-
//"github.com/redis/go-redis/v9"
9-
8+
109
)
1110

1211
type SubmissionInput struct {
@@ -47,17 +46,3 @@ func SaveSubmission(sub SubmissionInput) error {
4746
})
4847
return err
4948
}
50-
// func GetSubmissionIDByToken(token string) (string, error) {
51-
// if RedisClient == nil {
52-
// return "", errors.New("redis client not initialized")
53-
// }
54-
55-
// ctx := context.Background()
56-
// submissionID, err := RedisClient.Get(ctx, "token:"+token).Result()
57-
// if err == redis.Nil {
58-
// return "", errors.New("token not found")
59-
// } else if err != nil {
60-
// return "", err
61-
// }
62-
// return submissionID, nil
63-
// }

0 commit comments

Comments
 (0)