Collection API.
This commit is contained in:
@@ -60,6 +60,7 @@ export function parseCollectRequest(req) {
|
||||
|
||||
if (hash(`${website_id}${session_id}${time}`) === validationHash) {
|
||||
return {
|
||||
valid: true,
|
||||
type,
|
||||
session_id,
|
||||
url,
|
||||
@@ -68,5 +69,5 @@ export function parseCollectRequest(req) {
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
return { valid: false };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user