Compare commits
3 Commits
151012ea28
...
b877d2a8c9
| Author | SHA1 | Date | |
|---|---|---|---|
| b877d2a8c9 | |||
| e3ae889152 | |||
| 20a835cf45 |
@@ -67,10 +67,6 @@ public class MapLayerCoreService {
|
|||||||
.findDetailByUuid(uuid)
|
.findDetailByUuid(uuid)
|
||||||
.orElseThrow(() -> new CustomApiException("NOT_FOUND_DATA", HttpStatus.NOT_FOUND));
|
.orElseThrow(() -> new CustomApiException("NOT_FOUND_DATA", HttpStatus.NOT_FOUND));
|
||||||
|
|
||||||
if (LayerType.TILE.getId().equals(entity.getLayerType())) {
|
|
||||||
throw new CustomApiException("UNPROCESSABLE_ENTITY", HttpStatus.CONFLICT);
|
|
||||||
}
|
|
||||||
|
|
||||||
entity.setIsDeleted(true);
|
entity.setIsDeleted(true);
|
||||||
entity.setUpdatedUid(userUtil.getId());
|
entity.setUpdatedUid(userUtil.getId());
|
||||||
entity.setUpdatedDttm(ZonedDateTime.now());
|
entity.setUpdatedDttm(ZonedDateTime.now());
|
||||||
|
|||||||
Reference in New Issue
Block a user