Explorar o código

shage model expiration to expiredAt

ryuichi-e %!s(int64=6) %!d(string=hai) anos
pai
achega
f68c1fc903
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/models/share-link.js

+ 1 - 1
src/server/models/share-link.js

@@ -16,7 +16,7 @@ const schema = new mongoose.Schema({
     required: true,
     index: true,
   },
-  expiration: { type: Date },
+  expiredAt: { type: Date },
   description: { type: String },
   createdAt: { type: Date, default: Date.now, required: true },
 });