mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
Get memos in bulk
This commit is contained in:
@@ -158,6 +158,21 @@ class Database {
|
||||
return row;
|
||||
}
|
||||
|
||||
async getAllMemos() {
|
||||
var memos = [];
|
||||
await sqliteService.execute(
|
||||
(dbRow) => {
|
||||
var row = {
|
||||
userId: dbRow[0],
|
||||
memo: dbRow[1]
|
||||
};
|
||||
memos.push(row);
|
||||
},
|
||||
'SELECT user_id, memo FROM memos'
|
||||
);
|
||||
return memos;
|
||||
}
|
||||
|
||||
setMemo(entry) {
|
||||
sqliteService.executeNonQuery(
|
||||
`INSERT OR REPLACE INTO memos (user_id, edited_at, memo) VALUES (@user_id, @edited_at, @memo)`,
|
||||
|
||||
Reference in New Issue
Block a user