Skip to content
Snippets Groups Projects
Commit 408d54f2 authored by syuilo's avatar syuilo
Browse files

fix(api): admin/update-meta was not working

parent f9b5d921
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,15 @@
You should also include the user name that made the change.
-->
## 12.109.1 (2022/04/02)
## 12.x.x (unreleased)
### Improvements
-
### Bugfixes
- API: admin/update-meta was not working
### Known issues
- two-factor authentication is not working
## 12.109.1 (2022/04/02)
### Bugfixes
- API: Renoteが行えない問題を修正
......
......@@ -397,12 +397,14 @@ export default define(meta, paramDef, async (ps, me) => {
}
await db.transaction(async transactionalEntityManager => {
const meta = await transactionalEntityManager.findOne(Meta, {
const metas = await transactionalEntityManager.find(Meta, {
order: {
id: 'DESC',
},
});
const meta = metas[0];
if (meta) {
await transactionalEntityManager.update(Meta, meta.id, set);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment