127.0.0.1:8000 watch-together / 40d3627
foung it Seva Luchianov 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
44
55 function generate_token(table, key, email, overrides) {
66 overrides = overrides || {};
7 let token = overrides.token || uuid();
7 let token = overrides.token || utils.uuid();
88 // So there either is no token at all, or there is one but it has expired
99 return utils.query(
1010 `INSERT INTO ${table} (${key}, email, expires) ` +