Skip to content
Snippets Groups Projects
Commit 4e139d2a authored by syuilo's avatar syuilo
Browse files

fix query

parent d113aae2
No related branches found
Tags 12.41.1
No related merge requests found
......@@ -8,12 +8,14 @@ export async function fetchMeta(noCache = false): Promise<Meta> {
return await db.transaction(async transactionalEntityManager => {
// 過去のバグでレコードが複数出来てしまっている可能性があるので新しいIDを優先する
const meta = await transactionalEntityManager.findOne(Meta, {
const metas = await transactionalEntityManager.find(Meta, {
order: {
id: 'DESC',
},
});
const meta = metas[0];
if (meta) {
cache = meta;
return meta;
......
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