Remove forgotten debug log

This commit is contained in:
Alice Gaudon 2021-03-30 16:42:54 +02:00
parent e2c1d17f75
commit 0b07ff68d9
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}