From dad5844b271003be9cdd8e1387dff16b7779f088 Mon Sep 17 00:00:00 2001 From: gowthaman Date: Thu, 23 May 2024 13:40:50 +0530 Subject: [PATCH] reduce padding --- src/main/kotlin/com/restapi/domain/db.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/restapi/domain/db.kt b/src/main/kotlin/com/restapi/domain/db.kt index 5c91bbf..28b1823 100644 --- a/src/main/kotlin/com/restapi/domain/db.kt +++ b/src/main/kotlin/com/restapi/domain/db.kt @@ -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")