fix: 갱신 비용에 따라 접속 점수를 기록
revision 확인과 서버 event 기반 선택 갱신은 무가점으로 두고 PostgreSQL projection을 다시 만드는 초기·수동·복구 갱신만 1점을 기록한다. 인증 범위에 묶인 1회용 realtime 증표와 회귀 검증을 추가한다.
This commit is contained in:
@@ -25,6 +25,9 @@ export const accessPageWeights: Record<AccessPage, number> = {
|
||||
'npc-control': 1,
|
||||
};
|
||||
|
||||
/** One user-visible refresh that has to rebuild PostgreSQL-backed dashboard data. */
|
||||
export const DASHBOARD_PROJECTION_ACCESS_WEIGHT = 1;
|
||||
|
||||
export const generalAccessEndpointWeights = {
|
||||
'world.getGeneralDirectory': 2,
|
||||
'public.getNpcList': 2,
|
||||
@@ -369,9 +372,7 @@ export const upsertGeneralAccess = async (
|
||||
`
|
||||
);
|
||||
|
||||
await writeReadModelChangeJournal(transaction, [
|
||||
{ domain: 'access.general', entityId: input.generalId },
|
||||
]);
|
||||
await writeReadModelChangeJournal(transaction, [{ domain: 'access.general', entityId: input.generalId }]);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user