From f078e968cfce2ab7b4df72d44bac4c9a943b9d87 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Thu, 29 Feb 2024 16:12:24 +0800 Subject: [PATCH] refactor(schemas): rename `cleanup:outdated-logs` scope to`prune:logs` (#5452) --- packages/schemas/src/seeds/cloud-api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/schemas/src/seeds/cloud-api.ts b/packages/schemas/src/seeds/cloud-api.ts index d0ad65b79..97dfc6147 100644 --- a/packages/schemas/src/seeds/cloud-api.ts +++ b/packages/schemas/src/seeds/cloud-api.ts @@ -21,8 +21,8 @@ export enum CloudScope { ManageAffiliate = 'manage:affiliate', /** The user can create new affiliates and logs. */ CreateAffiliate = 'create:affiliate', - /** The user can cleanup outdated logs. */ - CleanupOutdatedLogs = 'cleanup:outdated-logs', + /** The user can prune logs which are expired. */ + PruneLogs = 'prune:logs', } export const createCloudApi = (): Readonly<[UpdateAdminData, ...CreateScope[]]> => {