Skip to content

Commit

Permalink
feat(translation): Return updatedAt column for values
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiky committed Jan 3, 2024
1 parent 57b250b commit ae41b8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/projects/detailed-model/detailed-project.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class DetailedProject {
const lang = projectLanguages.find(lang => lang.id == val.languageId);
// The language may have been filtered by access rights (source/target)
if (lang) {
return new ProjectTranslationValue(val.id, val.name, val.quantityString, lang.id, lang.name, lang.access, val.keyId, val.status);
return new ProjectTranslationValue(val.id, val.name, val.quantityString, lang.id, lang.name, lang.access, val.keyId, val.status, val.updatedAt);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class ProjectTranslationValue {
languageAccess: LanguageAccess;
keyId: number;
status: TranslationStatus;
updatedAt: Date;

constructor(
id: number,
Expand All @@ -24,7 +25,8 @@ export default class ProjectTranslationValue {
languageName: string,
languageAccess: LanguageAccess,
keyId: number,
status: TranslationStatus
status: TranslationStatus,
updatedAt: Date
) {
this.id = id;
this.name = name;
Expand All @@ -34,5 +36,6 @@ export default class ProjectTranslationValue {
this.languageAccess = languageAccess;
this.keyId = keyId;
this.status = status;
this.updatedAt = updatedAt;
}
}

0 comments on commit ae41b8f

Please sign in to comment.