parent
b4ebf254c8
commit
d9775c147f
5 changed files with 14 additions and 9 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import { Emojis } from '@/models/index';
|
||||
import { initDb } from '@/db/postgre';
|
||||
import { genId } from '@/misc/gen-id';
|
||||
|
||||
async function main(name: string, url: string, alias?: string): Promise<any> {
|
||||
await initDb();
|
||||
const { Emojis } = await import('@/models/index');
|
||||
|
||||
const aliases = alias != null ? [ alias ] : [];
|
||||
|
||||
await Emojis.save({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue