1
0
Fork 0

[javascript] Fixed database functions result which were not parsed

This commit is contained in:
Julien Dessaux 2023-09-07 23:40:20 +02:00
parent f89af1145d
commit a9cd987c50
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 4 additions and 3 deletions

View file

@ -10,7 +10,8 @@ export function deleteExpired() {
export function get(symbol) {
deleteExpired();
return getSurveysStatement.all(symbol);
const data = getSurveysStatement.all(symbol);
return data.map(elt => JSON.parse(elt.data));
}
export function set(survey) {