removed comment that said token expires since it no longer does that
This commit is contained in:
@ -17,10 +17,8 @@ export async function generateShareToken(id: number): Promise<{
|
|||||||
error: "Invalid user or user ID",
|
error: "Invalid user or user ID",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// generate the token that expires
|
|
||||||
const gernatetoken = randomBytes(5).readUInt32BE(0).toString();
|
const gernatetoken = randomBytes(5).readUInt32BE(0).toString();
|
||||||
|
|
||||||
// generate token logic
|
|
||||||
const token = await daphnis.linkSharingToken.create({
|
const token = await daphnis.linkSharingToken.create({
|
||||||
data: {
|
data: {
|
||||||
playlogId: id, // sets the playlog id
|
playlogId: id, // sets the playlog id
|
||||||
|
Reference in New Issue
Block a user