reduce padding
This commit is contained in:
parent
d51c8c7547
commit
dad5844b27
@ -216,7 +216,7 @@ object Session {
|
||||
val s = database
|
||||
.sqlQuery("SELECT nextval('${seqName(entity)}');")
|
||||
.findOne()?.getLong("nextval") ?: throw DataNotFoundException
|
||||
return "$entity-${"$s".padStart(10, '0')}"
|
||||
return "$entity-${"$s".padStart(6, '0')}"
|
||||
}
|
||||
|
||||
val redisUri = appConfig.redisUri().getOrDefault("redis://localhost:6379/0")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user