Skip to content

Commit ef83b70

Browse files
committed
Вернуть bun.lockb из игнора
1 parent 2a9cc5e commit ef83b70

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ coverage
4141

4242
/target
4343
/Cargo.lock
44-
/apps/web/build.zip
45-
bun.lockb
44+
/apps/web/build.zip

apps/api/src/helpers/getCookieFromToken.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { API_ERRORS, ApiError } from '@api'
22
import type { Nullable } from '@diary-spo/shared'
3+
import { formatDate } from '@utils'
34
import { caching } from 'cache-manager'
5+
import { authSaveUseDate } from 'src/models/Auth/actions/save'
46
import { AuthModel, type AuthModelType } from '../models/Auth'
57
import { DiaryUserModel, type DiaryUserModelType } from '../models/DiaryUser'
68
import { GroupModel, type GroupModelType } from '../models/Group'
79
import { SPOModel, type SPOModelType } from '../models/SPO'
8-
import { formatDate } from '@utils'
9-
import { authSaveUseDate } from 'src/models/Auth/actions/save'
1010

1111
const memoryCache = await caching('memory', {
1212
max: 1000,
@@ -77,7 +77,7 @@ export const getCookieFromToken = async (
7777
throw new ApiError(API_ERRORS.INVALID_TOKEN, 401)
7878
}
7979

80-
if(diaryUserAuth.lastUsedDate !== formatDate(new Date()))
80+
if (diaryUserAuth.lastUsedDate !== formatDate(new Date()))
8181
authSaveUseDate(token, new Date())
8282

8383
const user = diaryUserAuth.diaryUser

apps/api/src/models/Auth/actions/save/authSaveUseDate.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ export const authSaveUseDate = async (
55
token: string,
66
date: Date
77
): Promise<[affectedCount: number]> =>
8-
AuthModel.update({
9-
lastUsedDate: formatDate(date)
10-
},
8+
AuthModel.update(
9+
{
10+
lastUsedDate: formatDate(date)
11+
},
1112
{
1213
where: {
1314
token
1415
}
15-
})
16+
}
17+
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './authSaveUseDate'
1+
export * from './authSaveUseDate'

0 commit comments

Comments
 (0)