uuid() と lint (#5288)

* Import only v4 uuid, uuid() without version is deprecated

* Add Missing semicolon
This commit is contained in:
Satsuki Yanagi
2019-08-18 12:42:58 +09:00
committed by syuilo
parent 6060c6d56e
commit 59493a0cd9
21 changed files with 37 additions and 37 deletions

View File

@ -1,4 +1,4 @@
import * as uuid from 'uuid';
import { v4 as uuid } from 'uuid';
import $ from 'cafy';
import config from '../../../../../config';
import define from '../../../define';
@ -64,7 +64,7 @@ export default define(meta, async (ps) => {
}
// Generate token
const token = uuid.v4();
const token = uuid();
// Create session token document
const doc = await AuthSessions.save({