Remove forgotten debug log
This commit is contained in:
parent
e2c1d17f75
commit
0b07ff68d9
@ -1,6 +1,5 @@
|
||||
import Migration from "swaf/db/Migration";
|
||||
import FileModel from "../models/FileModel";
|
||||
import {logger} from "swaf/Logger";
|
||||
|
||||
export default class ReplaceTtlWithExpiresAtFilesTable extends Migration {
|
||||
public async install(): Promise<void> {
|
||||
@ -9,7 +8,6 @@ export default class ReplaceTtlWithExpiresAtFilesTable extends Migration {
|
||||
|
||||
const files = await FileModel.select().get();
|
||||
for (const file of files) {
|
||||
logger.debug(file);
|
||||
if (file.created_at && typeof file.ttl === 'number' && file.ttl > 0) {
|
||||
file.expires_at = new Date(file.created_at.getTime() + file.ttl * 1000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user