forked from syntaxbullet/AuroraBot-discord
refactor: fix stale imports
This commit is contained in:
@@ -63,7 +63,7 @@ mock.module("@shared/db/DrizzleClient", () => {
|
||||
};
|
||||
});
|
||||
|
||||
mock.module("@/lib/config", () => ({
|
||||
mock.module("@shared/lib/config", () => ({
|
||||
config: {
|
||||
inventory: {
|
||||
maxStackSize: 100n,
|
||||
|
||||
@@ -3,8 +3,8 @@ import { eq, and, sql, count, ilike } from "drizzle-orm";
|
||||
import { DrizzleClient } from "@shared/db/DrizzleClient";
|
||||
import { economyService } from "@shared/modules/economy/economy.service";
|
||||
import { levelingService } from "@shared/modules/leveling/leveling.service";
|
||||
import { config } from "@/lib/config";
|
||||
import { UserError } from "@/lib/errors";
|
||||
import { config } from "@shared/lib/config";
|
||||
import { UserError } from "@shared/lib/errors";
|
||||
import { withTransaction } from "@/lib/db";
|
||||
import type { Transaction, ItemUsageData } from "@shared/lib/types";
|
||||
import { TransactionType } from "@shared/lib/constants";
|
||||
@@ -161,7 +161,7 @@ export const inventoryService = {
|
||||
const results: string[] = [];
|
||||
|
||||
// 2. Apply Effects
|
||||
const { effectHandlers } = await import("./effects/registry");
|
||||
const { effectHandlers } = await import("@/modules/inventory/effects/registry");
|
||||
|
||||
for (const effect of usageData.effects) {
|
||||
const handler = effectHandlers[effect.type];
|
||||
|
||||
Reference in New Issue
Block a user