Compare commits
No commits in common. "main" and "v1.5.1" have entirely different histories.
@ -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 forDB != nil {
|
if len(forDB) > 0 {
|
||||||
dbType = strings.ToLower(*forDB)
|
dbType = strings.ToLower(forDB[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
switch dbType {
|
switch dbType {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user