Commit 51f5920
fix(RemoteAuth): pass session name to store.save instead of full path (#201660)
store.save() was receiving path.join(this.dataPath, this.sessionName)
instead of just this.sessionName. This caused remote stores (e.g. S3)
to use the full local filesystem path as the storage key, resulting in
zip files being saved under paths like:
sessions/Users/user/project/.wwebjs_session/default/RemoteAuth-default.zip
instead of:
sessions/RemoteAuth-default.zip
all other store calls (sessionExists, extract, delete) already pass
this.sessionName correctly. This brings store.save in line with them.
the local filesystem operations (creating and cleaning up the zip file)
continue to use path.join(this.dataPath, ...) which is correct.
regression introduced in e6fd112.
Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>1 parent 3e810b6 commit 51f5920
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments