본문 바로가기

깜놀하는 해므찌로

검색하기
깜놀하는 해므찌로
프로필사진 agnusdei1207

  • 분류 전체보기 (599)
    • IT (598)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 호버
  • ApexChart
  • ajax 사용 예시
  • angular button
  • Oracle LISTAGG 사용 예시
  • angular route
  • Angular Router
  • mysql if
  • angular animation
  • TAILWIND
  • Router
  • angular modal
  • 검색
  • flex-1
  • formgroup
  • modal
  • 앵귤러 모달
  • Ionic modal
  • 아이오닉 스크롤 이벤트
  • 앵귤러 애니메이션
  • 스크롤 이벤트 감지
  • prisma
  • 셀렉트박스 커스텀
  • route
  • summary
  • scroll
  • 스크롤 이벤트
  • egov spring ajax 사용 예시
  • 모달
  • 옵저버블
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Prisma Log (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바