dockerized the project for dev

This commit is contained in:
QkoSad
2024-09-06 16:27:48 +03:00
parent 8e83b6b8df
commit 04ae8b7be8
47 changed files with 363 additions and 635 deletions
+15
View File
@@ -0,0 +1,15 @@
export const isUserId = function(req: unknown): req is { user: { id: string } } {
let user: unknown = null
let id: unknown = null
if (typeof req === 'object' && req)
if ('user' in req) {
user = req.user
if (typeof user === 'object' && user && 'id' in user) {
id = user.id
if (typeof id === 'string') {
return true
}
}
}
return false
}