Compare commits
2 Commits
c0b5dd99ef
...
e3ae889152
| Author | SHA1 | Date | |
|---|---|---|---|
| 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