Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ceb9b18

Browse filesBrowse files
committed
wip
1 parent 07d9e65 commit ceb9b18
Copy full SHA for ceb9b18

File tree

3 files changed

+5
-5
lines changed
Filter options

3 files changed

+5
-5
lines changed

‎.husky/pre-commit

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
echo "Running lint-staged..."
22

3-
npx lint-staged
3+
lint-staged --allow-empty

‎.lintstagedrc

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"*.{ts,tsx}": [
2+
"*.{ts,js}": [
33
"prettier --write"
44
]
55
}

‎src/dals/user/user.repository.ts

Copy file name to clipboardExpand all lines: src/dals/user/user.repository.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { getUserContext } from "./user.context.js";
2-
import { User } from "./user.model.js";
1+
import { getUserContext } from './user.context.js';
2+
import { User } from './user.model.js';
33

44
export const userRepository = {
55
getUserList: async (page?: number, pageSize?: number): Promise<User[]> => {
6-
const skip = Boolean(page) ? (page - 1) * pageSize : 0;
6+
const skip = Boolean(page) ? (page - 1) * pageSize : 0;
77
const limit = pageSize ?? 0;
88

99
return await getUserContext().find().skip(skip).limit(limit).toArray();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.