refactor: Abbreviate item rarity values from full names to single-letter codes across the application.
All checks were successful
Deploy to Production / test (push) Successful in 40s
All checks were successful
Deploy to Production / test (push) Successful in 40s
This commit is contained in:
@@ -16,7 +16,7 @@ import type { ItemType } from "@shared/lib/constants";
|
||||
export interface CreateItemDTO {
|
||||
name: string;
|
||||
description?: string | null;
|
||||
rarity?: 'Common' | 'Uncommon' | 'Rare' | 'Epic' | 'Legendary';
|
||||
rarity?: 'C' | 'R' | 'SR' | 'SSR';
|
||||
type: 'MATERIAL' | 'CONSUMABLE' | 'EQUIPMENT' | 'QUEST';
|
||||
price?: bigint | null;
|
||||
iconUrl: string;
|
||||
@@ -27,7 +27,7 @@ export interface CreateItemDTO {
|
||||
export interface UpdateItemDTO {
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
rarity?: 'Common' | 'Uncommon' | 'Rare' | 'Epic' | 'Legendary';
|
||||
rarity?: 'C' | 'R' | 'SR' | 'SSR';
|
||||
type?: 'MATERIAL' | 'CONSUMABLE' | 'EQUIPMENT' | 'QUEST';
|
||||
price?: bigint | null;
|
||||
iconUrl?: string;
|
||||
@@ -122,7 +122,7 @@ export const itemsService = {
|
||||
.values({
|
||||
name: data.name,
|
||||
description: data.description ?? null,
|
||||
rarity: data.rarity ?? 'Common',
|
||||
rarity: data.rarity ?? 'C',
|
||||
type: data.type,
|
||||
price: data.price ?? null,
|
||||
iconUrl: data.iconUrl,
|
||||
|
||||
Reference in New Issue
Block a user