Skip to content

Commit 65cf4cd

Browse files
authored
Merge pull request #1013 from yujunhui/main
fix: merge mock success data
2 parents 05d5f84 + 2f39bdd commit 65cf4cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: apps/api/src/lib/withAuth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function withAuth<T, U extends any[]>(
1717
logger.warn("You're bypassing authentication");
1818
warningCount++;
1919
}
20-
return { success: true } as T;
20+
return { success: true, ...(mockSuccess || {}) } as T;
2121
} else {
2222
return await originalFunction(...args);
2323
}

0 commit comments

Comments
 (0)