# 4. 상점 리뷰 등록 시 기존 상점 리뷰의 총점을 수정하고 싶어요.

1. 관리자 웹 > [로직](/main/guide/faq/logic.md) 설정 > '+'버튼을 클릭해 새로운 로직을 생성해 주세요.&#x20;
2. 아래와 같이 입력해 주세요.&#x20;
   * If When : Data is created
   * Where : storeReview
   * Then : Updated Data

> storeReview는 상점 리뷰를 저장하는 컬렉션이에요.&#x20;

3. Then 아래, To do를 펼쳐 아래와 같이 입력해 주세요.&#x20;
   * Collection for Data Update : store (상점 정보를 저장하는 컬렉션 명(store)을 입력 해주세요.)
   * &#x20;Data Search Condition to Update : "등록된 상점 리뷰가 연결되어 있는 상점 정보"를 찾기 위해 아래 이미지와 같이 작성해 주세요.
   * Number of data to update : "기존 상점 리뷰 총점을 등록된 상점 리뷰를 더한 총점으로 수정"하기 위해 아래이미지와 같이 작성해 주세요.&#x20;

<div align="left"><figure><img src="/files/UkxleL2n32RxSmdFOSI7" alt="" width="375"><figcaption></figcaption></figure></div>

> "scoreSum"은 상정 리뷰의 총점이에요.

4. Save 버튼을 클릭 후, 상점 리뷰를 등록하면 기존 상점 리뷰의 총점이 수정돼요.

> \#로직, #로직 설정, #로직 설정하는 방법, #리뷰 등록 시 리뷰 총점 수정하는 방법, #평점 등록 시 평점 총점 수정하는 방법, #리뷰 총점 자동으로 수정되게 하기

2024.01.11 Jinny


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ohmyapp.io/main/guide/faq/logic/4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
