mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 15:54:08 +01:00
Fix error while building app
This commit is contained in:
@@ -42,7 +42,7 @@ export default class LinksController {
|
|||||||
const exist = await Redis.get(`${link.code}:${ip}:tracked`)
|
const exist = await Redis.get(`${link.code}:${ip}:tracked`)
|
||||||
if (!exist) {
|
if (!exist) {
|
||||||
const getCountry = request.header('CF-IPCountry', '')
|
const getCountry = request.header('CF-IPCountry', '')
|
||||||
await Redis.set(`${link.code}:${ip}:tracked`, 'true', 'ex', '3600')
|
await Redis.set(`${link.code}:${ip}:tracked`, 'true', 'EX', '3600')
|
||||||
const click = await Click.create({
|
const click = await Click.create({
|
||||||
date: DateTime.now(),
|
date: DateTime.now(),
|
||||||
ip,
|
ip,
|
||||||
|
|||||||
Reference in New Issue
Block a user