refactor: prefer buffer (#26469)

* refactor: prefer buffer

* Update server/src/schema/tables/session.table.ts

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>

---------

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
This commit is contained in:
Jason Rasmussen
2026-02-24 13:26:36 +00:00
committed by GitHub
co-authored by Daniel Dietzler
parent 4b8f90aa55
commit f07e2b58f0
16 changed files with 44 additions and 29 deletions
+1 -1
View File
@@ -236,6 +236,6 @@ export class SharedLinkService extends BaseService {
}
private asToken(sharedLink: { id: string; password: string }) {
return this.cryptoRepository.hashSha256(`${sharedLink.id}-${sharedLink.password}`);
return this.cryptoRepository.hashSha256(`${sharedLink.id}-${sharedLink.password}`).toString('base64');
}
}