Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14205a949d |
@ -8,10 +8,10 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
jsmod.Register("id", map[string]any{
|
jsmod.Register("id", map[string]any{
|
||||||
"Make": func(size int, forDB ...string) string {
|
"Make": func(size int, forDB *string) string {
|
||||||
dbType := ""
|
dbType := ""
|
||||||
if len(forDB) > 0 {
|
if forDB != nil {
|
||||||
dbType = strings.ToLower(forDB[0])
|
dbType = strings.ToLower(*forDB)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch dbType {
|
switch dbType {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user