Skip to content

Commit

Permalink
Enable session id updates
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Mar 26, 2024
1 parent 153db8b commit a7a08eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ export const DbLinks = {
return link;
},
updateConfig(linkId:string, config: types.HealthLinkConfig) {
db.query(`UPDATE shlink set config_passcode=:passcode, config_exp=:exp where id=:id`,
db.query(`UPDATE shlink set config_passcode=:passcode, config_exp=:exp, session_id=:sessionId where id=:id`,
{
id: linkId,
exp: config.exp,
passcode: config.passcode
passcode: config.passcode,
sessionId: config.sessionId
});
return true;
},
Expand Down

0 comments on commit a7a08eb

Please sign in to comment.