mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Update some code & made a basic isThis ArticleStarred api? & starring is
now a wip!
This commit is contained in:
parent
026c4a31a3
commit
2cf787a401
4 changed files with 75 additions and 1 deletions
|
@ -29,6 +29,14 @@ export default defineEventHandler(async (event) => {
|
|||
sqlC: sqlC,
|
||||
success: true,
|
||||
};
|
||||
} else if (requestChange === "email") {
|
||||
const sqlC = await sql`
|
||||
UPDATE users SET email = ${apiKeyqq[0]}
|
||||
WHERE username = ${token.user}`;
|
||||
return {
|
||||
sqlC: sqlC,
|
||||
success: true,
|
||||
};
|
||||
}
|
||||
const sqlC = await sql.unsafe(
|
||||
`UPDATE user_other_data SET ${requestChange} = $1 WHERE username = $2`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue