From 01b614ba340ade776b7a67bf6e1a76c9314c352e Mon Sep 17 00:00:00 2001 From: Futa Ikeda Date: Thu, 17 Oct 2024 15:29:41 -0400 Subject: [PATCH] Update month data fields to be strings --- app/models/institution-user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/institution-user.ts b/app/models/institution-user.ts index 44046c5bb0..2fb19f778d 100644 --- a/app/models/institution-user.ts +++ b/app/models/institution-user.ts @@ -15,9 +15,9 @@ export default class InstitutionUserModel extends OsfModel { @attr('number') publicFileCount!: number; @attr('number') storageByteCount!: number; @attr('number') totalObjectCount!: number; - @attr('date') monthLastLogin!: Date; - @attr('date') monthLastActive!: Date; - @attr('date') accountCreationDate!: Date; + @attr('string') monthLastLogin!: string; // YYYY-MM + @attr('string') monthLastActive!: string; // YYYY-MM + @attr('string') accountCreationDate!: string; // YYYY-MM @attr('fixstring') orcidId?: string; @belongsTo('user', { async: true })