diff --git a/Sources/src/main/kotlin/allin/data/postgres/entities/UserEntity.kt b/Sources/src/main/kotlin/allin/data/postgres/entities/UserEntity.kt index 1815a18..c994589 100644 --- a/Sources/src/main/kotlin/allin/data/postgres/entities/UserEntity.kt +++ b/Sources/src/main/kotlin/allin/data/postgres/entities/UserEntity.kt @@ -36,7 +36,7 @@ interface UserEntity : Entity { fun getImage(userId: String, database: Database): String? { val imageByte = database.usersimage.find { it.id eq id }?.image ?: return null - val urlfile = "image/$userId" + val urlfile = "images/$userId" if (!imageManagerUser.imageAvailable(urlfile)) { imageManagerUser.saveImage(urlfile, imageByte) }