mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Updated logRetentionInDays checks
This commit is contained in:
parent
a1d2f7d090
commit
b069e09e9f
@ -142,7 +142,7 @@ function getLogGroupResource(service, stage, provider) {
|
||||
};
|
||||
|
||||
const logRetentionInDays = provider.getLogRetentionInDays();
|
||||
if (logRetentionInDays !== null) {
|
||||
if (logRetentionInDays) {
|
||||
resource.Properties.RetentionInDays = logRetentionInDays;
|
||||
}
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ module.exports = {
|
||||
};
|
||||
|
||||
const logRetentionInDays = this.provider.getLogRetentionInDays();
|
||||
if (logRetentionInDays !== null) {
|
||||
if (logRetentionInDays) {
|
||||
newLogGroup[logGroupLogicalId].Properties.RetentionInDays = logRetentionInDays;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user