mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 17:59:05 +01:00
14 lines
260 B
TypeScript
14 lines
260 B
TypeScript
import { Meta } from '../models/entities/meta';
|
|
import { Metas } from '../models';
|
|
|
|
export default async function(): Promise<Meta> {
|
|
const meta = await Metas.findOne();
|
|
if (meta) {
|
|
return meta;
|
|
} else {
|
|
return Metas.save({
|
|
id: 'x'
|
|
} as Meta);
|
|
}
|
|
}
|