Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- flex-1
- Angular Router
- 아이오닉 스크롤 이벤트
- ApexChart
- formgroup
- 호버
- Router
- angular route
- 스크롤 이벤트
- 스크롤 이벤트 감지
- Ionic modal
- mysql if
- 셀렉트박스 커스텀
- angular modal
- scroll
- egov spring ajax 사용 예시
- summary
- angular button
- prisma
- ajax 사용 예시
- angular animation
- TAILWIND
- Oracle LISTAGG 사용 예시
- 옵저버블
- 검색
- route
- 모달
- 앵귤러 모달
- 앵귤러 애니메이션
- modal
Archives
- Today
- Total
목록prisma tx (1)
깜놀하는 해므찌로
Prisma Log Tx Transaction control 프리즈마 로그 트랜잭션 핸들링 예시
async applyRequest(id: string, admin: AdminDTO): Promise { // Tx: 하나의 작업 단위로 묶기 return this.prismaService.$transaction(async (tx) => { // create 가 실패한 경우 중괄호 내부 요소 전부 rollback const created = await tx.influencerRequest.update({ data: { status: InfluencerRequestStatus.COMPLETED, adminId: admin.id, }, where: { id }, }); // 위 입력이 성공할 경우 로그 입력 await tx.log.create({ data: { content: '승인 처리', influenc..
IT
2023. 8. 28. 14:06