mirror of https://github.com/BRAVO68WEB/shx.git
🚑 fixed note requires password when note is not private
This commit is contained in:
parent
4b29715b1d
commit
80f42b01c1
|
@ -12,7 +12,9 @@ export class Notes {
|
|||
return data;
|
||||
}
|
||||
async getSingleNote(id: string, passkey: string = '') {
|
||||
const res = await this.axios.get(`/gist/${id}`, { params: { passkey } });
|
||||
const res = await this.axios.get(`/gist/${id}`, {
|
||||
params: passkey ? { passkey } : {},
|
||||
});
|
||||
const data = res.data.data as INote;
|
||||
return data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue