mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
fix image IDs causing duplicate results
This commit is contained in:
parent
eb944dd1d3
commit
93c7599b15
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ module.exports = {
|
|||
// Construct Embeds
|
||||
let files = [];
|
||||
let embeds = res.response.body.images.map((i)=>{
|
||||
let imgName = `lcwp.${Date.now().toString(36)}.jpeg`;
|
||||
let imgName = `lcwp.${(Date.now() + Math.random()).toString(36)}.jpeg`;
|
||||
|
||||
files.push({
|
||||
filename: imgName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue