diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 00:33:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 00:33:02 +0900 |
| commit | 52e3bcfd2968ffdab8c124dc8dad9cb9e3e995ac (patch) | |
| tree | 928cc159aa6e139892e662561c88eff5be47c668 /src/misc | |
| parent | チャートの数値カラムの型を拡張 (diff) | |
| download | sharkey-52e3bcfd2968ffdab8c124dc8dad9cb9e3e995ac.tar.gz sharkey-52e3bcfd2968ffdab8c124dc8dad9cb9e3e995ac.tar.bz2 sharkey-52e3bcfd2968ffdab8c124dc8dad9cb9e3e995ac.zip | |
Meta を二重にデータベースに保存できないように
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/fetch-meta.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/misc/fetch-meta.ts b/src/misc/fetch-meta.ts index cf1fc474ce..a459f07729 100644 --- a/src/misc/fetch-meta.ts +++ b/src/misc/fetch-meta.ts @@ -1,6 +1,5 @@ import { Meta } from '../models/entities/meta'; import { Metas } from '../models'; -import { genId } from './gen-id'; export default async function(): Promise<Meta> { const meta = await Metas.findOne(); @@ -8,7 +7,7 @@ export default async function(): Promise<Meta> { return meta; } else { return Metas.save({ - id: genId(), + id: 'x' } as Meta); } } |