Skip to content

Commit

Permalink
Merge pull request #1392 from hcaumo/1391-standardize-boolean-values-…
Browse files Browse the repository at this point in the history
…in-env-file

Standardize boolean values and update .env file pattern
  • Loading branch information
monilpat authored Dec 23, 2024
2 parents 55a7eae + 8046809 commit aa2f4bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class TwitterPostClient {

if (
this.runtime.getSetting("POST_IMMEDIATELY") != null &&
this.runtime.getSetting("POST_IMMEDIATELY") != ""
this.runtime.getSetting("POST_IMMEDIATELY") !== ""
) {
postImmediately = parseBooleanFromText(
this.runtime.getSetting("POST_IMMEDIATELY")
);
// Retrieve setting, default to false if not set or if the value is not "true"
postImmediately = this.runtime.getSetting("POST_IMMEDIATELY") === "true" || false;

}

if (postImmediately) {
Expand Down

0 comments on commit aa2f4bf

Please sign in to comment.