init to statistics and manage pos type users
This commit is contained in:
@@ -13,10 +13,13 @@ export class PosController {
|
||||
async getInfo(@PosInfo('pos_id') pos_id: string, @Res({ passthrough: true }) res) {
|
||||
const result = await this.service.getInfo(pos_id)
|
||||
|
||||
console.log('firstaaaaa')
|
||||
if (result) {
|
||||
console.log('first')
|
||||
|
||||
// @ts-ignore
|
||||
res.cookie('posId', pos_id, {
|
||||
httpOnly: true,
|
||||
httpOnly: false,
|
||||
secure: process.env.NODE_ENV === 'production',
|
||||
sameSite: 'lax',
|
||||
maxAge: 1000 * 60 * 60 * 24 * 7, // 7 days
|
||||
|
||||
Reference in New Issue
Block a user