reduce padding

This commit is contained in:
gowthaman 2024-05-23 13:40:50 +05:30
parent d51c8c7547
commit dad5844b27

View File

@ -216,7 +216,7 @@ object Session {
val s = database val s = database
.sqlQuery("SELECT nextval('${seqName(entity)}');") .sqlQuery("SELECT nextval('${seqName(entity)}');")
.findOne()?.getLong("nextval") ?: throw DataNotFoundException .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") val redisUri = appConfig.redisUri().getOrDefault("redis://localhost:6379/0")